Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CorsMiddleware ¶
type CorsMiddleware struct {
// contains filtered or unexported fields
}
CorsMiddleware middleware for cors.
type Middleware ¶
type Middleware interface {
Setup()
}
Middleware interface.
func NewCorsMiddleware ¶
func NewCorsMiddleware(handler common.RequestHandler, logger logger.Logger, env env.Env) Middleware
NewCorsMiddleware creates new cors middleware.
func NewObservabilityMiddleware ¶
func NewObservabilityMiddleware( handler common.RequestHandler, logger logger.Logger, env env.Env, ) Middleware
NewObservabilityMiddleware creates new observability middleware.
type Middlewares ¶
type Middlewares []Middleware
Middlewares contains multiple middleware.
func NewMiddlewares ¶
func NewMiddlewares(middlewares []Middleware) Middlewares
NewMiddlewares creates new middlewares nolint: interfacer
type ObservabilityMiddleware ¶
type ObservabilityMiddleware struct {
// contains filtered or unexported fields
}
ObservabilityMiddleware middleware for observability.
func (ObservabilityMiddleware) Setup ¶
func (m ObservabilityMiddleware) Setup()
Setup sets up observability middleware.
Click to show internal directories.
Click to hide internal directories.