Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceDiscovery ¶
type ServiceDiscovery struct {
// contains filtered or unexported fields
}
ServiceDiscovery discovers metrics services in the snapshotter cache and serves a []MetricsTarget on an HTTP server.
func NewServiceDiscovery ¶
func NewServiceDiscovery(host string, port int, c *cache.RemoteSnapshotterCache) *ServiceDiscovery
NewServiceDiscovery returns a ServiceDiscovery with configured HTTP server and provided cache.
func (*ServiceDiscovery) Serve ¶
func (sd *ServiceDiscovery) Serve() error
Serve starts the HTTP server for receiving service discovery requests.
Click to show internal directories.
Click to hide internal directories.