wrappers

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wrapper

type Wrapper struct {
	Cfg     *config.ServiceConfig
	Wrapper *gobreaker.CircuitBreaker
	Err     error
	CW      map[string]*gobreaker.CircuitBreaker
}

func New

func New(this *Wrapper) *Wrapper

func (*Wrapper) Call

func (w *Wrapper) Call(req func() (interface{}, error)) (interface{}, error)

func (*Wrapper) GetWrapper

func (w *Wrapper) GetWrapper(usecase string) *Wrapper

Jump to

Keyboard shortcuts

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