Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultHealthPath = "/healthz"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessControl ¶
type AccessControl struct {
// contains filtered or unexported fields
}
func NewAccessControl ¶
func NewAccessControl(protected http.Handler, list accesscontrol.List) *AccessControl
func (*AccessControl) Child ¶
func (a *AccessControl) Child() http.Handler
func (*AccessControl) ServeHTTP ¶
func (a *AccessControl) ServeHTTP(rw http.ResponseWriter, req *http.Request)
func (*AccessControl) String ¶
func (a *AccessControl) String() string
type BodyLimit ¶
type BodyLimit interface { RequestLimit() int64 BufferOptions() eval.BufferOption }
type Endpoint ¶
type Endpoint struct {
// contains filtered or unexported fields
}
func NewEndpoint ¶
func NewEndpoint(opts *EndpointOptions, log *logrus.Entry, modifier []hcl.Body) *Endpoint
func (*Endpoint) BodyContext ¶ added in v1.7.0
func (e *Endpoint) BodyContext() hcl.Body
BodyContext exposes the current endpoint hcl.Body.
func (*Endpoint) BufferOptions ¶
func (e *Endpoint) BufferOptions() eval.BufferOption
func (*Endpoint) RequestLimit ¶
type EndpointOptions ¶
type EndpointOptions struct { APIName string BufferOpts eval.BufferOption Context hcl.Body ErrorTemplate *errors.Template ErrorHandler http.Handler IsErrorHandler bool LogHandlerKind string LogPattern string ReqBodyLimit int64 ServerOpts *server.Options Proxies producer.Roundtrip Redirect *producer.Redirect Requests producer.Roundtrip Sequences producer.Sequences Response *producer.Response }
type Health ¶
type Health struct {
// contains filtered or unexported fields
}
func NewHealthCheck ¶
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy wraps a httputil.ReverseProxy to apply additional configuration context and have control over the roundtrip configuration.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.