Documentation ¶
Overview ¶
Package combined implements a dispatcher that combines caching, redispatching and optional cluster dispatching.
Index ¶
- func NewDispatcher(options ...Option) (dispatch.Dispatcher, error)
- type Option
- func CacheConfig(config *cache.Config) Option
- func ConcurrencyLimit(limit uint16) Option
- func GrpcDialOpts(opts ...grpc.DialOption) Option
- func GrpcPresharedKey(key string) Option
- func PrometheusSubsystem(name string) Option
- func UpstreamAddr(addr string) Option
- func UpstreamCAPath(path string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDispatcher ¶
func NewDispatcher(options ...Option) (dispatch.Dispatcher, error)
NewDispatcher initializes a Dispatcher that caches and redispatches optionally to the provided upstream.
Types ¶
type Option ¶
type Option func(*optionState)
Option is a function-style option for configuring a combined Dispatcher.
func CacheConfig ¶ added in v1.5.0
CacheConfig sets the configuration for the local dispatcher's cache.
func ConcurrencyLimit ¶ added in v1.11.0
ConcurrencyLimit sets the max number of goroutines per operation
func GrpcDialOpts ¶
func GrpcDialOpts(opts ...grpc.DialOption) Option
GrpcDialOpts sets the default DialOptions used for gRPC clients connecting to the optional cluster dispatching.
func GrpcPresharedKey ¶
GrpcPresharedKey sets the preshared key used to authenticate for optional cluster dispatching.
func PrometheusSubsystem ¶ added in v1.5.0
PrometheusSubsystem sets the subsystem name for the prometheus metrics
func UpstreamAddr ¶
UpstreamAddr sets the optional cluster dispatching upstream address.
func UpstreamCAPath ¶
UpstreamCAPath sets the optional cluster dispatching upstream certificate authority.