Documentation ¶
Index ¶
- type Forwarder
- type HandleOption
- type HandleOptions
- type Handler
- type Option
- func AuthOption(auth *url.Userinfo) Option
- func AutherOption(auther auth.Authenticator) Option
- func BypassOption(bypass bypass.Bypass) Option
- func LoggerOption(logger logger.Logger) Option
- func NetnsOption(netns string) Option
- func ObserverOption(observer observer.Observer) Option
- func RateLimiterOption(limiter rate.RateLimiter) Option
- func RecordersOption(recorders ...recorder.RecorderObject) Option
- func RouterOption(router chain.Router) Option
- func ServiceOption(service string) Option
- func TLSConfigOption(tlsConfig *tls.Config) Option
- func TrafficLimiterOption(limiter traffic.TrafficLimiter) Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandleOption ¶
type HandleOption func(opts *HandleOptions)
func MetadataHandleOption ¶
func MetadataHandleOption(md metadata.Metadata) HandleOption
type HandleOptions ¶
type Option ¶
type Option func(opts *Options)
func AuthOption ¶
func AutherOption ¶
func AutherOption(auther auth.Authenticator) Option
func BypassOption ¶
func LoggerOption ¶
func NetnsOption ¶
func ObserverOption ¶
func RateLimiterOption ¶
func RateLimiterOption(limiter rate.RateLimiter) Option
func RecordersOption ¶ added in v0.1.3
func RecordersOption(recorders ...recorder.RecorderObject) Option
func RouterOption ¶
func ServiceOption ¶
func TLSConfigOption ¶
func TrafficLimiterOption ¶
func TrafficLimiterOption(limiter traffic.TrafficLimiter) Option
type Options ¶
type Options struct { Bypass bypass.Bypass Router chain.Router Auth *url.Userinfo Auther auth.Authenticator RateLimiter rate.RateLimiter Limiter traffic.TrafficLimiter TLSConfig *tls.Config Logger logger.Logger Observer observer.Observer Recorders []recorder.RecorderObject Service string Netns string }
Click to show internal directories.
Click to hide internal directories.