Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
Middleware is an sentinel middleware.
func NewMiddleware ¶
func NewMiddleware(logger logger.Logger) *Middleware
NewMiddleware returns a new sentinel middleware.
func (*Middleware) GetHandler ¶
func (m *Middleware) GetHandler(metadata middleware.Metadata) (func(h fasthttp.RequestHandler) fasthttp.RequestHandler, error)
GetHandler returns the HTTP handler provided by sentinel middleware.
Click to show internal directories.
Click to hide internal directories.