loadbalancer: ErrPublisherStopped no longer used
Peter Bourgon
8 years ago
0 | 0 | package loadbalancer |
1 | 1 | |
2 | import ( | |
3 | "errors" | |
4 | ||
5 | "github.com/go-kit/kit/endpoint" | |
6 | ) | |
2 | import "github.com/go-kit/kit/endpoint" | |
7 | 3 | |
8 | 4 | // Publisher describes something that provides a set of identical endpoints. |
9 | 5 | // Different publisher implementations exist for different kinds of service |
11 | 7 | type Publisher interface { |
12 | 8 | Endpoints() ([]endpoint.Endpoint, error) |
13 | 9 | } |
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") |