Codebase list golang-github-go-kit-kit / 78fd391 loadbalancer / strategy / strategy.go
78fd391

Tree @78fd391 (Download .tar.gz)

strategy.go @78fd391raw · history · blame

1
2
3
4
5
6
7
8
9
package strategy

import "github.com/go-kit/kit/endpoint"

// Strategy yields endpoints to consumers according to some algorithm.
type Strategy interface {
	Next() (endpoint.Endpoint, error)
	Stop()
}