Documentation ¶
Index ¶
Constants ¶
View Source
const ( ConnectZoneName = "connect.consul" ServiceZoneName = "service.consul" )
View Source
const FlightPathTag = "in-flightpath"
Variables ¶
This section is empty.
Functions ¶
func Hash ¶
func Hash(l []ClusterInfo) string
Types ¶
type Catalog ¶
type Catalog struct {
// contains filtered or unexported fields
}
Catalog interacts with consul and keeps a list of currently valid entities
func NewCatalog ¶
NewCatalog creates a new instance of Catalog
func (*Catalog) DiscoverClusters ¶
func (c *Catalog) DiscoverClusters(clusters chan<- ClusterInfo, cleanup chan<- string)
DiscoverClusters delivers the state-of-the-world list of clusters as available in the consul catalog.
type CertFinder ¶
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
func (*Cluster) IsConnectEnabled ¶
type ClusterInfo ¶
type ClusterInfo interface { Name() string Endpoints() []Endpoint IsConnectEnabled() bool Hash() string }
ClusterInfo represents a collection of service instances registered in consul catalog. A cluster represents only one type of service.
type Endpoint ¶
type Endpoint struct {
// contains filtered or unexported fields
}
Endpoint is the network address and port of the service instance.
func (*Endpoint) RoutingInfo ¶
type RouteFinder ¶
type RouteStorage ¶
type RouteStorage struct {
// contains filtered or unexported fields
}
func NewRouteStorage ¶
func (*RouteStorage) WatchRoutes ¶
func (i *RouteStorage) WatchRoutes(routes chan<- []Route, errs chan<- error)
type ServiceFinder ¶
Click to show internal directories.
Click to hide internal directories.