handler

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextDataSupplier

type ContextDataSupplier interface {
	RestConfig() *rest.Config
	RawConfig() *api.Config
	Client() client.PackageV1Alpha1Client
}

type ContextEnrichingHandler

type ContextEnrichingHandler struct {
	Source  ContextDataSupplier
	Handler http.Handler
}

func (*ContextEnrichingHandler) ServeHTTP

func (enricher *ContextEnrichingHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Precondition

type Precondition func(r *http.Request) error

type PreconditionFailedHandleFunc

type PreconditionFailedHandleFunc func(w http.ResponseWriter, r *http.Request, err error)

type PreconditionHandler

type PreconditionHandler struct {
	Precondition  Precondition
	Handler       http.Handler
	FailedHandler PreconditionFailedHandleFunc
}

func (*PreconditionHandler) ServeHTTP

func (ph *PreconditionHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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