Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CircuitBreaker ¶
type CircuitBreaker struct {
// contains filtered or unexported fields
}
func NewCircuitBreaker ¶
func NewCircuitBreaker(config Config) *CircuitBreaker
func (*CircuitBreaker) Execute ¶
func (eh *CircuitBreaker) Execute(cmd Command) CommandResult
This a blocking function
type CommandResult ¶
type CommandResult struct {
// contains filtered or unexported fields
}
func (CommandResult) Error ¶
func (cr CommandResult) Error() error
func (CommandResult) Result ¶
func (cr CommandResult) Result() []any
type FallbackFunc ¶
type Functor ¶
type Functor struct {
Exec FallbackFunc
}
func NewFunctor ¶
func NewFunctor(exec FallbackFunc) *Functor
Click to show internal directories.
Click to hide internal directories.