Documentation ¶
Index ¶
- type Middleware
- func (m *Middleware) CaddyModule() caddy.ModuleInfo
- func (m *Middleware) Cleanup() error
- func (m *Middleware) Provision(ctx caddy.Context) error
- func (m *Middleware) ServeHTTP(writer http.ResponseWriter, request *http.Request, handler caddyhttp.Handler) error
- func (m *Middleware) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
- func (m *Middleware) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
type Middleware struct { Config *pages.MiddlewareConfig `json:"config"` Logger *zap.Logger `json:"-"` Client *pages.PageClient `json:"-"` }
func (*Middleware) CaddyModule ¶
func (m *Middleware) CaddyModule() caddy.ModuleInfo
func (*Middleware) Cleanup ¶
func (m *Middleware) Cleanup() error
func (*Middleware) Provision ¶
func (m *Middleware) Provision(ctx caddy.Context) error
func (*Middleware) ServeHTTP ¶
func (m *Middleware) ServeHTTP( writer http.ResponseWriter, request *http.Request, handler caddyhttp.Handler, ) error
func (*Middleware) UnmarshalCaddyfile ¶
func (m *Middleware) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
func (*Middleware) Validate ¶
func (m *Middleware) Validate() error
Click to show internal directories.
Click to hide internal directories.