cbk

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SIMPLE = "simple"
)

Variables

Functions

func InitCbk added in v1.0.15

func InitCbk()

Types

type CircuitBreaker

type CircuitBreaker interface {
	Check(key string) error
	Succeed(key string)
	Failed(key string)
}

type CircuitBreakerSimple

type CircuitBreakerSimple struct {
	// contains filtered or unexported fields
}

func (*CircuitBreakerSimple) Check

func (c *CircuitBreakerSimple) Check(key string) error

func (*CircuitBreakerSimple) Failed

func (c *CircuitBreakerSimple) Failed(key string)

func (*CircuitBreakerSimple) Init

func (c *CircuitBreakerSimple) Init()

func (*CircuitBreakerSimple) Succeed

func (c *CircuitBreakerSimple) Succeed(key string)

type Error

type Error struct {
	Msg string
	// contains filtered or unexported fields
}

func (Error) Error

func (c Error) Error() string

Jump to

Keyboard shortcuts

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