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 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 RouterOption ¶
func ServiceOption ¶
func TLSConfigOption ¶
func TrafficLimiterOption ¶
func TrafficLimiterOption(limiter traffic.TrafficLimiter) Option
Click to show internal directories.
Click to hide internal directories.