mux

package
v4.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterServerMux

func RegisterServerMux(ctx context.Context, s server.HttpMux)

Types

type Middleware

type Middleware struct {
	clienthttp.Resolver
}

func (*Middleware) CaddyModule

func (m *Middleware) CaddyModule() caddy.ModuleInfo

CaddyModule returns the Caddy module information.

func (*Middleware) Init added in v4.0.1

func (m *Middleware) Init(ctx context.Context, s server.HttpMux)

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) Stop added in v4.0.1

func (m *Middleware) Stop()

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL