Codebase list golang-github-go-kit-kit / 2766c93
loadbalancer: ErrPublisherStopped no longer used Peter Bourgon 8 years ago
1 changed file(s) with 1 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
00 package loadbalancer
11
2 import (
3 "errors"
4
5 "github.com/go-kit/kit/endpoint"
6 )
2 import "github.com/go-kit/kit/endpoint"
73
84 // Publisher describes something that provides a set of identical endpoints.
95 // Different publisher implementations exist for different kinds of service
117 type Publisher interface {
128 Endpoints() ([]endpoint.Endpoint, error)
139 }
14
15 // ErrPublisherStopped is returned by publishers when the underlying
16 // implementation has been terminated and can no longer serve requests.
17 var ErrPublisherStopped = errors.New("publisher stopped")