package
0.13.0
Repository: https://github.com/go-kit/kit.git
Documentation: pkg.go.dev

# Functions

NewRandom returns a load balancer that selects services randomly.
NewRoundRobin returns a load balancer that returns services in sequence.
Retry wraps a service load balancer and returns an endpoint oriented load balancer for the specified service method.
RetryWithCallback wraps a service load balancer and returns an endpoint oriented load balancer for the specified service method.

# Variables

ErrNoEndpoints is returned when no qualifying endpoints are available.

# Structs

RetryError is an error wrapper that is used by the retry mechanism.

# Interfaces

Balancer yields endpoints according to some heuristic.

# Type aliases

Callback is a function that is given the current attempt count and the error received from the underlying endpoint.