validatewebhook

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

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

Go to latest
Published: Jan 14, 2021 License: MIT Imports: 8 Imported by: 0

README

caddy-validate-webhook

Middleware to validate a webhook

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

type Middleware struct {
	Webhook    caddyhttp.MiddlewareHandler `json:"-"`
	WebhookRaw json.RawMessage             `json:"hook" caddy:"namespace=http.handlers.validate_webhook inline_key=webhook"`
	// contains filtered or unexported fields
}

func (Middleware) CaddyModule

func (Middleware) CaddyModule() caddy.ModuleInfo

CaddyModule returns the Caddy module information.

func (Middleware) Provision

func (m Middleware) Provision(ctx caddy.Context) error

Provision implements the caddy.Provisioner interface.

func (Middleware) ServeHTTP

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

ServeHTTP implements the caddy.Handler interface.

func (*Middleware) UnmarshalCaddyfile

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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