Documentation ¶
Index ¶
- func StreamClientInterceptor(opts ...Option) grpc.StreamClientInterceptor
- func UnaryClientInterceptor(opts ...Option) grpc.UnaryClientInterceptor
- type Option
- func WithCommandName(name string) Option
- func WithErrorPercentThreshold(errorPercentThreshold int) Option
- func WithHystrixTimeout(timeout time.Duration) Option
- func WithMaxConcurrentRequests(maxConcurrentRequests int) Option
- func WithRequestVolumeThreshold(requestVolumeThreshold int) Option
- func WithSleepWindow(sleepWindow int) Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamClientInterceptor ¶
func StreamClientInterceptor(opts ...Option) grpc.StreamClientInterceptor
func UnaryClientInterceptor ¶
func UnaryClientInterceptor(opts ...Option) grpc.UnaryClientInterceptor
Types ¶
type Option ¶
type Option func(opts *Options)
Option represents the hystrix client options
func WithCommandName ¶
WithCommandName sets the hystrix command name
func WithErrorPercentThreshold ¶
WithErrorPercentThreshold sets hystrix error percent threshold
func WithHystrixTimeout ¶
WithHystrixTimeout sets hystrix timeout
func WithMaxConcurrentRequests ¶
WithMaxConcurrentRequests sets hystrix max concurrent requests
func WithRequestVolumeThreshold ¶
WithRequestVolumeThreshold sets hystrix request volume threshold
func WithSleepWindow ¶
WithSleepWindow sets hystrix sleep window
Click to show internal directories.
Click to hide internal directories.