gobreaker

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: 5 Imported by: 0

Documentation

Overview

Package gobreaker provides a circuit circuitbreaker adapter using the sony/gobreaker lib.

Index

Constants

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

Variables

View Source
var ZeroCfg = Config{}

Functions

func ConfigGetter

func ConfigGetter(e config.ExtraConfig) interface{}

func NewCircuitBreaker

func NewCircuitBreaker(cfg Config, logger log.Logger) *gobreaker.CircuitBreaker

Types

type Config

type Config struct {
	Name            string
	Interval        int
	Timeout         int
	MaxErrors       int
	LogStatusChange bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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