Documentation
¶
Index ¶
Constants ¶
View Source
const ( BackendTransactionsURL = "/v1/transactions" FrontendTransactionsURL = "/v1/client-side/transactions" BackendErrorsURL = "/v1/errors" FrontendErrorsURL = "/v1/client-side/errors" HealthCheckURL = "/healthcheck" )
Variables ¶
View Source
var ( Routes = map[string]routeMapping{ BackendTransactionsURL: {backendHandler, transaction.NewProcessor}, FrontendTransactionsURL: {frontendHandler, transaction.NewProcessor}, BackendErrorsURL: {backendHandler, err.NewProcessor}, FrontendErrorsURL: {frontendHandler, err.NewProcessor}, HealthCheckURL: {healthCheckHandler, healthcheck.NewProcessor}, } )
Functions ¶
Types ¶
type Config ¶
type Config struct {
Host string `config:"host"`
MaxUnzippedSize int64 `config:"max_unzipped_size"`
MaxHeaderBytes int `config:"max_header_bytes"`
ReadTimeout time.Duration `config:"read_timeout"`
WriteTimeout time.Duration `config:"write_timeout"`
ShutdownTimeout time.Duration `config:"shutdown_timeout"`
SecretToken string `config:"secret_token"`
SSL *SSLConfig `config:"ssl"`
ConcurrentRequests int `config:"concurrent_requests" validate:"min=1"`
EnableFrontend bool `config:"enable_frontend"`
AllowOrigins []string `config:"allow_origins"`
}
type ProcessorFactory ¶
type ProcessorHandler ¶
type ProcessorHandler func(ProcessorFactory, Config, reporter) http.Handler
Click to show internal directories.
Click to hide internal directories.