Documentation ¶
Overview ¶
Package eapache provides a circuit breaker proxy middleware using the github.com/eapache/go-resiliency/breaker lib.
Adding the middleware to your proxy stack
import eapache "github.com/davron112/krakend-circuitbreaker/eapache/proxy" ... var p proxy.Proxy var backend *config.Backend ... p = eapache.NewMiddleware(backend)(p) ...
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackendFactory ¶
func BackendFactory(next proxy.BackendFactory) proxy.BackendFactory
BackendFactory adds a cb middleware wrapping the internal factory
func NewMiddleware ¶
func NewMiddleware(remote *config.Backend) proxy.Middleware
NewMiddleware builds a middleware based on the extra config params or fallbacks to the next proxy
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.