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)
type FlowComponent ¶
type FlowComponent interface {
http.Handler
Next(FlowComponent)
}
Click to show internal directories.
Click to hide internal directories.