Codebase list golang-github-go-kit-kit / f9d8373b-9935-4125-b2b2-694ccabcf82b/v0.2.0 sd / fixed_subscriber.go
f9d8373b-9935-4125-b2b2-694ccabcf82b/v0.2.0

Tree @f9d8373b-9935-4125-b2b2-694ccabcf82b/v0.2.0 (Download .tar.gz)

fixed_subscriber.go @f9d8373b-9935-4125-b2b2-694ccabcf82b/v0.2.0raw · history · blame

1
2
3
4
5
6
7
8
9
package sd

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

// FixedSubscriber yields a fixed set of services.
type FixedSubscriber []endpoint.Endpoint

// Endpoints implements Subscriber.
func (s FixedSubscriber) Endpoints() ([]endpoint.Endpoint, error) { return s, nil }