proxy

package
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

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