Categorygithub.com/ferocious-space/durableclient
modulepackage
0.7.3
Repository: https://github.com/ferocious-space/durableclient.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

NewDurableClient creates default opinionated client params := &durableOption{ cache: nil, logger: logr.Discard(), agent: "https://github.com/ferocious-space/durableclient", pooling: false, retrier: true, numRetries: 3, circuit: true, maxErrors: 80, ErrorThresholdPercentage: 100, rollingWindow: time.Second * 60, } use ClientOptions to change them.
OptionAgent changes default agent.
OptionCache adds cache to the client.
OptionCircuit if maxErrors <= or rollingWindow <= 0 , disables circuit.
OptionConnectionPooling enables http.Client connection pooling and reuse this options enables middlewares.Drainer and modifies http.Transport.
HTTP2 is enabled by default in http.Transport.
OptionLogger adds default logger to the request context.
OptionRetrier if numRetries <= 0 , disables the retry mechanisms.
OptionStream adds hystrix even stream to /hystrix.stream http.defaultservermux.

# Type aliases

No description provided by the author