handler

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register()

Types

type Module

type Module struct {
	Secret     string     `json:"secret,omitempty"`
	CookieName string     `json:"cookie_name,omitempty"`
	Upstreams  []Upstream `json:"upstreams,omitempty"`
	// contains filtered or unexported fields
}

func (Module) CaddyModule

func (Module) CaddyModule() caddy.ModuleInfo

func (*Module) Provision

func (m *Module) Provision(ctx caddy.Context) (err error)

func (*Module) Resolve added in v0.1.7

func (m *Module) Resolve() []*reverseproxy.Upstream

func (*Module) ServeHTTP

func (m *Module) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error

func (*Module) UnmarshalCaddyfile

func (m *Module) UnmarshalCaddyfile(d *caddyfile.Dispenser) error

type Upstream

type Upstream struct {
	CIDR string `json:"cidr,omitempty"`
	Port int    `json:"port,omitempty"`
	Host string `json:"host,omitempty"`
	// contains filtered or unexported fields
}

func (*Upstream) Resolve added in v0.1.7

func (u *Upstream) Resolve(logger *zap.Logger) *reverseproxy.Upstream

Jump to

Keyboard shortcuts

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