circuitbreaker

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeNode = "circuitbreaker"
)

Variables

This section is empty.

Functions

func Deregister

func Deregister(name string)

Deregister 清理配置适配器

func NewBuilder

func NewBuilder() container.StandardBuilder

func Register

func Register(resolver Resover)

Register 注册配置文件适配器

Types

type CircuitBreaker

type CircuitBreaker = circuitbreaker.CircuitBreaker

type Provider

type Provider interface {
	Name() string
	CircuitBreaker() CircuitBreaker
	GetImpl() interface{}
}

type Resover

type Resover interface {
	Name() string
	Resolve(name string, config config.Config) (Provider, error)
}

resover 定义配置文件转换方法

type Standard

type Standard interface {
	GetProvider(name string) (q Provider)
}

Standard

func NewStandard

func NewStandard(c container.Container) Standard

NewStandard

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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