caddyext

package module
v0.0.0-...-5bf1113 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Umbra

type Umbra struct {
	Tag             string
	DestinationURLs []string
}

func (Umbra) CaddyModule

func (Umbra) CaddyModule() caddy.ModuleInfo

CaddyModule returns the Caddy module information.

func (*Umbra) Cleanup

func (u *Umbra) Cleanup() error

Cleanup cleans up the resources made by rl during provisioning.

func (*Umbra) Provision

func (u *Umbra) Provision(ctx caddy.Context) (err error)

Provision implements caddy.Provisioner.

func (Umbra) ServeHTTP

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

ServeHTTP implements caddyhttp.MiddlewareHandler.

func (*Umbra) UnmarshalCaddyfile

func (s *Umbra) UnmarshalCaddyfile(d *caddyfile.Dispenser) (err error)

UnmarshalCaddyfile sets up the handler from Caddyfile tokens.

func (*Umbra) Validate

func (u *Umbra) Validate() error

Validate implements caddy.Validator.

Jump to

Keyboard shortcuts

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