Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Instrument ¶ added in v0.4.0
func Instrument( client aurestclientapi.Client, stateChangeCallback StateChangeCallbackFunction, countsCallback CountsCallbackFunction, )
Instrument adds instrumentation.
Either of the callbacks may be nil.
Types ¶
type CountsCallbackFunction ¶ added in v0.4.0
type Impl ¶
type Impl struct { Wrapped aurestclientapi.Client Name string CB *gobreaker.CircuitBreaker RequestTimeout time.Duration StateChangeCallback StateChangeCallbackFunction CountsCallback CountsCallbackFunction }
func (*Impl) Perform ¶
func (c *Impl) Perform(ctx context.Context, method string, requestUrl string, requestBody interface{}, response *aurestclientapi.ParsedResponse) error
type StateChangeCallbackFunction ¶ added in v0.4.0
StateChangeCallbackFunction allows you to instrument the circuit breaker.
Click to show internal directories.
Click to hide internal directories.