types

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2026 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextKey

type ContextKey string
const (
	// TargetContextKey used by the forwarder to get the target backend.
	TargetContextKey ContextKey = "krb.target"

	// BackendContextKey used to store the backend name.
	BackendContextKey ContextKey = "krb.backend"
)

type CustomHandlerFunc added in v0.4.0

type CustomHandlerFunc func(FlowComponent, http.ResponseWriter, *http.Request)

type Dummy added in v0.4.0

type Dummy struct {
	CustomHandler CustomHandlerFunc
	// Returned by Order() int
	O int
	// contains filtered or unexported fields
}

Dummy can be used to replace components with a block that just forwards whatever request it's called to handle. This is useful to be able to easily disable certain components while keeping the structure the same.

func (*Dummy) Next added in v0.4.0

func (d *Dummy) Next(next FlowComponent)

func (*Dummy) Order added in v0.4.0

func (d *Dummy) Order() int

func (*Dummy) ServeHTTP added in v0.4.0

func (d *Dummy) ServeHTTP(w http.ResponseWriter, req *http.Request)

type FlowComponent

type FlowComponent interface {
	http.Handler

	Next(FlowComponent)
}

Jump to

Keyboard shortcuts

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