Codebase list golang-github-go-kit-kit / dff50435-7a33-4f0c-bbdc-f455eb10d80a/v0.4.0 sd / subscriber.go
dff50435-7a33-4f0c-bbdc-f455eb10d80a/v0.4.0

Tree @dff50435-7a33-4f0c-bbdc-f455eb10d80a/v0.4.0 (Download .tar.gz)

subscriber.go @dff50435-7a33-4f0c-bbdc-f455eb10d80a/v0.4.0raw · history · blame

package sd

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

// Subscriber listens to a service discovery system and yields a set of
// identical endpoints on demand. An error indicates a problem with connectivity
// to the service discovery system, or within the system itself; a subscriber
// may yield no endpoints without error.
type Subscriber interface {
	Endpoints() ([]endpoint.Endpoint, error)
}