breaker

package
v0.0.0-...-c18a219 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const PkgName = "auxo.net.web.filter.breaker"

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoBreaker

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

func NewAuto

func NewAuto() *AutoBreaker

func (*AutoBreaker) Apply

func (ab *AutoBreaker) Apply(next web.HandlerFunc) web.HandlerFunc

type SimpleBreaker

type SimpleBreaker struct {
	Breaker  *breaker.Breaker
	Fallback web.HandlerFunc
}

func (*SimpleBreaker) Apply

func (sb *SimpleBreaker) Apply(next web.HandlerFunc) web.HandlerFunc

func (*SimpleBreaker) Try

func (sb *SimpleBreaker) Try(handler web.HandlerFunc, ctx web.Context, logger log.Logger) error

Jump to

Keyboard shortcuts

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