eapache

package
v0.0.0-...-9823ec8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package eapache provides a circuit breaker adapter using the github.com/eapache/go-resiliency/breaker lib

Index

Constants

View Source
const Namespace = "github.com/starvn/qos/circuitbreaker/eapache"

Variables

View Source
var ZeroCfg = Config{}

Functions

func ConfigGetter

func ConfigGetter(e config.ExtraConfig) interface{}

func NewCircuitBreaker

func NewCircuitBreaker(cfg Config) *breaker.Breaker

Types

type Config

type Config struct {
	Error   int
	Success int
	Timeout time.Duration
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL