Documentation
¶
Index ¶
- Variables
- func ClientHintsInterceptor(ctx *context.Context) (proceed bool, err error)
- func PrefixInterceptor(ctx *context.Context) (proceed bool, err error)
- func RemoveServerHeader(ctx *context.Context) (proceed bool, err error)
- func UpstreamHintsInterceptor(ctx *context.Context) (proceed bool, err error)
- func WhitelistedRemotesInterceptor(ctx *context.Context) (proceed bool, err error)
- type AccessLogger
- type CorsInterceptor
- type CustomHeaders
- type Encoding
- type ForceSecureInterceptor
- func (instance *ForceSecureInterceptor) Handle(ctx *context.Context) (proceed bool, err error)
- func (instance *ForceSecureInterceptor) HandlesStages() []context.Stage
- func (instance *ForceSecureInterceptor) Name() string
- func (instance *ForceSecureInterceptor) RegisterFlag(fe support.FlagEnabled, appPrefix string) error
- type Interceptor
- type InterceptorFunc
- type Interceptors
- func (instance Interceptors) Add(i Interceptor) Interceptors
- func (instance Interceptors) AddFunc(name string, i InterceptorFunc, stages ...context.Stage) Interceptors
- func (instance Interceptors) Clone() Interceptors
- func (instance Interceptors) Handle(ctx *context.Context) (proceed bool, err error)
- func (instance Interceptors) Init(stop support.Channel) error
- func (instance Interceptors) RegisterFlag(fe support.FlagEnabled, appPrefix string) error
- func (instance Interceptors) Remove(i Interceptor) Interceptors
- func (instance Interceptors) RemoveByName(name string) Interceptors
- type Proxy
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultInterceptors = make(Interceptors)
)
Functions ¶
func ClientHintsInterceptor ¶
Types ¶
type AccessLogger ¶
type CorsInterceptor ¶
type CorsInterceptor struct { AllowedOriginsHost rules.ForceableHostPatterns AllowedMethods rules.ForceableMethods AllowedHeaders rules.ForceableHeaderNames AllowedCredentials rules.ForceableBool MaxAge rules.ForceableDuration Enabled rules.ForceableBool }
func NewCorsInterceptor ¶
func NewCorsInterceptor() *CorsInterceptor
func (*CorsInterceptor) Handle ¶
func (instance *CorsInterceptor) Handle(ctx *context.Context) (proceed bool, err error)
func (*CorsInterceptor) HandlesStages ¶
func (instance *CorsInterceptor) HandlesStages() []context.Stage
func (*CorsInterceptor) Name ¶
func (instance *CorsInterceptor) Name() string
func (*CorsInterceptor) RegisterFlag ¶
func (instance *CorsInterceptor) RegisterFlag(fe support.FlagEnabled, appPrefix string) error
type CustomHeaders ¶
func NewCustomHeaders ¶
func NewCustomHeaders() *CustomHeaders
func (*CustomHeaders) Handle ¶
func (instance *CustomHeaders) Handle(ctx *context.Context) (proceed bool, err error)
func (*CustomHeaders) HandlesStages ¶
func (instance *CustomHeaders) HandlesStages() []context.Stage
func (*CustomHeaders) Name ¶
func (instance *CustomHeaders) Name() string
func (*CustomHeaders) RegisterFlag ¶
func (instance *CustomHeaders) RegisterFlag(fe support.FlagEnabled, appPrefix string) error
type Encoding ¶ added in v0.1.14
type Encoding struct{}
func NewEncoding ¶ added in v0.1.14
func NewEncoding() *Encoding
func (*Encoding) HandlesStages ¶ added in v0.1.14
func (*Encoding) RegisterFlag ¶ added in v0.1.14
func (instance *Encoding) RegisterFlag(support.FlagEnabled, string) error
type ForceSecureInterceptor ¶
type ForceSecureInterceptor struct {
Enabled rules.ForceableBool
}
func NewForceSecureInterceptor ¶
func NewForceSecureInterceptor() *ForceSecureInterceptor
func (*ForceSecureInterceptor) Handle ¶
func (instance *ForceSecureInterceptor) Handle(ctx *context.Context) (proceed bool, err error)
func (*ForceSecureInterceptor) HandlesStages ¶
func (instance *ForceSecureInterceptor) HandlesStages() []context.Stage
func (*ForceSecureInterceptor) Name ¶
func (instance *ForceSecureInterceptor) Name() string
func (*ForceSecureInterceptor) RegisterFlag ¶
func (instance *ForceSecureInterceptor) RegisterFlag(fe support.FlagEnabled, appPrefix string) error
type Interceptor ¶
type Interceptors ¶
type Interceptors map[context.Stage]map[string]Interceptor
func (Interceptors) Add ¶
func (instance Interceptors) Add(i Interceptor) Interceptors
func (Interceptors) AddFunc ¶
func (instance Interceptors) AddFunc(name string, i InterceptorFunc, stages ...context.Stage) Interceptors
func (Interceptors) Clone ¶
func (instance Interceptors) Clone() Interceptors
func (Interceptors) Handle ¶
func (instance Interceptors) Handle(ctx *context.Context) (proceed bool, err error)
func (Interceptors) Init ¶ added in v0.1.7
func (instance Interceptors) Init(stop support.Channel) error
func (Interceptors) RegisterFlag ¶
func (instance Interceptors) RegisterFlag(fe support.FlagEnabled, appPrefix string) error
func (Interceptors) Remove ¶
func (instance Interceptors) Remove(i Interceptor) Interceptors
func (Interceptors) RemoveByName ¶
func (instance Interceptors) RemoveByName(name string) Interceptors
type Proxy ¶
type Proxy struct { Dialer *net.Dialer Transport *http.Transport RulesRepository rules.Repository OverrideHost string OverrideScheme string BehindOtherReverseProxy bool ResultHandler lctx.ResultHandler AccessLogger AccessLogger Interceptors Interceptors MetricsCollector lctx.MetricsCollector }
func (*Proxy) RegisterFlag ¶
func (instance *Proxy) RegisterFlag(fe support.FlagEnabled, appPrefix string) error
Click to show internal directories.
Click to hide internal directories.