Discover Packages
github.com/simia-tech/netx
filter
blacklist
package
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Dec 5, 2018
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
BackoffFn defines a function that calculates the duration after which
an endpoint is removed from the blacklist, based on the provided number
of failures.
ConstantBackoff creates a BackoffFn that always returns the provided duration.
LinearBackoff creates a BackoffFn that raises the returned duration after some
failures from the provided lower to upper bound.
Filter implements a blacklist filter.
NewFilter returns a new blacklist filter.
Failure signals the filter that the provided endpoint failed.
Filter filters the provided endpoints and returns the result.
Success signals the filter that the provided endpoint succeeded.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.