Documentation ¶
Index ¶
- func UnaryClientInterceptor(commandName string, opts ...Option) grpc.UnaryClientInterceptor
- type Option
- func WithErrorPercentThreshold(errorPercentThreshold int) Option
- func WithFallbackFunc(fn func(ctx context.Context, err error) error) Option
- func WithMaxConcurrentRequests(maxConcurrentRequests int) Option
- func WithRequestVolumeThreshold(requestVolumeThreshold int) Option
- func WithSleepWindow(sleepWindow time.Duration) Option
- func WithStatsDCollector(addr, prefix string, sampleRate float32, flushBytes int) Option
- func WithTimeout(timeout time.Duration) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnaryClientInterceptor ¶
func UnaryClientInterceptor(commandName string, opts ...Option) grpc.UnaryClientInterceptor
Types ¶
type Option ¶
type Option func(*options)
Option represents the hystrix client options
func WithErrorPercentThreshold ¶
WithErrorPercentThreshold sets hystrix error percent threshold
func WithFallbackFunc ¶
WithFallbackFunc sets the fallback function
func WithMaxConcurrentRequests ¶
WithMaxConcurrentRequests sets hystrix max concurrent requests
func WithRequestVolumeThreshold ¶
WithRequestVolumeThreshold sets hystrix request volume threshold
func WithSleepWindow ¶
WithSleepWindow sets hystrix sleep window
func WithStatsDCollector ¶
WithStatsDCollector exports hystrix metrics to a statsD backend
Click to show internal directories.
Click to hide internal directories.