Versions in this module Expand all Collapse all v0 v0.1.0 Dec 22, 2024 Changes in this version + var OnChanged provider.ChangeFunc + func ValidateConfig(mainOpts Options) error + func ValidateMapping(mainOpts Options) error + func Watch() error + type AccessLogOptions struct + BufferSize int + Enabled bool + Escape EscapeType + Flush time.Duration + Output string + Template string + TimeFormat string + type ChangeFunc func() error + type ErrInvalidConfig struct + FullPath []string + Message string + Value any + func (e ErrInvalidConfig) Error() string + type EscapeType string + const DefaultEscape + const JSONEscape + const NoneEscape + type FileProviderOptions struct + Enabled bool + Extensions []string + Paths []string + type LoggingOtions struct + Handler string + Level string + Output string + type MetricsOptions struct + Prometheus PrometheusOptions + type MiddlwareOptions struct + ID string + Params map[string]any + Type string + Use string + type OTLPOptions struct + BatchSize int64 + Enabled bool + Endpoint string + Flush time.Duration + Insecure bool + Propagators []string + QueueSize int64 + SamplingRate float64 + Timeout time.Duration + type Options struct + AccessLogs map[string]AccessLogOptions + Gopool bool + Group string + IsDaemon bool + Logging LoggingOtions + Metrics MetricsOptions + Middlewares map[string]MiddlwareOptions + NumLoops int + PIDFile string + Providers ProviderOtions + Redis []RedisOptions + Resolver ResolverOptions + Routes map[string]RouteOptions + Servers map[string]ServerOptions + Services map[string]ServiceOptions + TimerResolution time.Duration + Tracing TracingOptions + UpgradeSock string + Upstreams map[string]UpstreamOptions + User string + Version string + Watch *bool + func Load(path string) (Options, error) + func LoadDynamic(mainOptions Options) (provider.Provider, Options, error) + func NewOptions() Options + func (opt Options) From() string + func (opt Options) IsWatch() bool + type PrometheusOptions struct + Buckets []float64 + Enabled bool + Path string + ServerID string + type Protocol string + const ProtocolGRPC + const ProtocolHTTP + const ProtocolHTTP2 + type ProviderOtions struct + File FileProviderOptions + type RedisOptions struct + Addrs []string + DB int + ID string + Password string + SkipPing bool + Username string + type ResolverOptions struct + AddrPort string + SkipTest bool + Valid time.Duration + type RouteOptions struct + ID string + Methods []string + Middlewares []MiddlwareOptions + Paths []string + Servers []string + ServiceID string + type ServerOptions struct + AccessLogID string + Backlog int + Bind string + HTTP2 bool + ID string + Logging LoggingOtions + MaxRequestBodySize int + Middlewares []MiddlwareOptions + PPROF bool + ReadBufferSize int + ReusePort bool + TCPFastOpen bool + TCPQuickAck bool + TLS TLSOptions + Timeout ServerTimeoutOptions + type ServerTimeoutOptions struct + Graceful time.Duration + Idle time.Duration + KeepAlive time.Duration + Read time.Duration + Write time.Duration + type ServiceOptions struct + ID string + MaxConnsPerHost *int + Middlewares []MiddlwareOptions + Protocol Protocol + TLSVerify bool + Timeout ServiceTimeoutOptions + Url string + type ServiceTimeoutOptions struct + Dail time.Duration + GRPC time.Duration + MaxConnWait time.Duration + Read time.Duration + Write time.Duration + type TLSOptions struct + CertPEM string + KeyPEM string + MinVersion string + type TargetOptions struct + FailTimeout time.Duration + MaxFails uint + Target string + Weight uint32 + type TracingOptions struct + OTLP OTLPOptions + type UpstreamOptions struct + HashOn string + ID string + Strategy UpstreamStrategy + Targets []TargetOptions + type UpstreamStrategy string + const HashingStrategy + const RandomStrategy + const RoundRobinStrategy + const WeightedStrategy