discovery

package
v0.0.0-...-e5a3c77 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

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.

func (*ServiceDiscovery) Shutdown

func (sd *ServiceDiscovery) Shutdown(ctx context.Context) error

Shutdown shuts down the service discovery HTTP server.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL