Versions in this module Expand all Collapse all v1 v1.0.1 Jul 10, 2020 v1.0.0 Jul 10, 2020 Changes in this version + type CircuitBreaker struct + AMQPClient *rabbitmq.RabbitMQClient + HTTPClient *http.Client + Logger *zap.Logger + Retries int + func NewCircuitBreaker(logger *zap.Logger, retries int, amqpClient *rabbitmq.RabbitMQClient, ...) *CircuitBreaker + func (cb *CircuitBreaker) CallCustomFuncWithRetries(ctx context.Context, fn func() error) error + func (cb *CircuitBreaker) ConfigureHystrix(commands []string) + func (cb *CircuitBreaker) Deregister() + func (cb *CircuitBreaker) PerformCustomServiceRequest(ctx context.Context, breakerName string, fn func() error, ...) error + func (cb *CircuitBreaker) PerformHTTPRequest(ctx context.Context, breakerName string, url string, method string, ...) ([]byte, error) + func (cb *CircuitBreaker) PerformRequest(ctx context.Context, breakerName string, req *http.Request, ...) ([]byte, error) + func (cb *CircuitBreaker) PerformServiceRequest(ctx context.Context, breakerName string, fn func() (interface{}, error), ...) (interface{}, error) + type DiscoveryToken struct + Address string + State string + type FallbackFunc func(error) error