Documentation ¶
Index ¶
- func New(opts ...Option) client.ClientInterface
- type Client
- type Option
- func CommandName(name string) Option
- func ErrorPercentThreshold(errorPercentThreshold int) Option
- func FallbackFunc(fn fallbackFunc) Option
- func HystrixTimeout(timeout time.Duration) Option
- func MaxConcurrentRequests(maxConcurrentRequests int) Option
- func RequestVolumeThreshold(requestVolumeThreshold int) Option
- func Retrier(retrier retry.Retriable) Option
- func RetryCount(retryCount int) Option
- func SleepWindow(sleepWindow int) Option
- func Timeout(timeout time.Duration) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { http.Client HystrixTimeout time.Duration HystrixCommandName string MaxConcurrentRequests int RequestVolumeThreshold int SleepWindow int ErrorPercentThreshold int RetryCount int Retrier retry.Retriable FallbackFunc func(err error) error }
Client - is the hystrix client implementation
type Option ¶
type Option func(*Client)
Option -
func ErrorPercentThreshold ¶
ErrorPercentThreshold -
func MaxConcurrentRequests ¶
MaxConcurrentRequests -
func RequestVolumeThreshold ¶
RequestVolumeThreshold -
Click to show internal directories.
Click to hide internal directories.