Documentation ¶ Index ¶ func Register(api string, fn Match) type Cluster type Clusters type Criteria type Discoveries type Discovery type HealthCheck type Instance type Match type Service func New() *Service func (s *Service) Discover(discovery *Discovery) (*Cluster, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Register ¶ func Register(api string, fn Match) Types ¶ type Cluster ¶ type Cluster struct { Discovery Instances []Instance } type Clusters ¶ type Clusters []Cluster type Criteria ¶ type Criteria struct { Region string Zone string AvailabilityZone string Tags []string Project string URL string Service string } type Discoveries ¶ type Discoveries []Discovery type Discovery ¶ type Discovery struct { Api string Cluster string Criteria HealthChecks []HealthCheck } type HealthCheck ¶ type HealthCheck struct { URL string TimeoutMs int ExpectedStatus int MaxRetries int MinAge time.Duration MinAgeSec int } type Instance ¶ type Instance struct { Name string PrivateIP string StartTime time.Time } type Match ¶ type Match func(criteria *Criteria) ([]Instance, error) type Service ¶ type Service struct { } func New ¶ func New() *Service func (*Service) Discover ¶ func (s *Service) Discover(discovery *Discovery) (*Cluster, error) Source Files ¶ View all Source files cluster.go const.go criteria.go discovery.go instance.go service.go Directories ¶ Show internal Expand all Path Synopsis aws consul gcp lb local Click to show internal directories. Click to hide internal directories.