Documentation ¶
Index ¶
- func RegisterServerMux(ctx context.Context, s server.HttpMux)
- type Middleware
- func (m Middleware) CaddyModule() caddy.ModuleInfo
- func (m Middleware) Provision(ctx caddy.Context) error
- func (m Middleware) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error
- func (m Middleware) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
- func (m Middleware) WrapListener(ln net.Listener) net.Listener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
func NewMiddleware ¶
func NewMiddleware(ctx context.Context, s server.HttpMux) Middleware
func (Middleware) CaddyModule ¶
func (m Middleware) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (Middleware) Provision ¶
func (m Middleware) Provision(ctx caddy.Context) error
Provision adds routes to the main server
func (Middleware) ServeHTTP ¶
func (m Middleware) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error
ServeHTTP implements caddyhttp.MiddlewareHandler.
func (Middleware) UnmarshalCaddyfile ¶
func (m Middleware) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
UnmarshalCaddyfile implements caddyfile.Unmarshaler.
func (Middleware) WrapListener ¶
func (m Middleware) WrapListener(ln net.Listener) net.Listener
Click to show internal directories.
Click to hide internal directories.