Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middlewares ¶
type Middlewares struct { StripSlashed Middleware Logger Middleware OnlyJSON Middleware RealIP Middleware CORS Middleware MasterKey Middleware }
func InitMiddlewares ¶
func InitMiddlewares(tools tools.Tools, cfg Config, masterkeyMid *masterkey.HTTPMiddleware) *Middlewares
type Registerer ¶
type Registerer interface {
Register(r chi.Router, mids *Middlewares)
}
Click to show internal directories.
Click to hide internal directories.