sd

package
v0.37.2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8SServiceDiscovery

type K8SServiceDiscovery struct {
	// contains filtered or unexported fields
}

func (*K8SServiceDiscovery) GetLabels

func (sd *K8SServiceDiscovery) GetLabels(pid uint32) *spy.Labels

func (*K8SServiceDiscovery) Refresh

func (sd *K8SServiceDiscovery) Refresh(ctx context.Context) error

type NoopServiceDiscovery

type NoopServiceDiscovery struct {
}

func (NoopServiceDiscovery) GetLabels

func (NoopServiceDiscovery) GetLabels(_ uint32) *spy.Labels

func (NoopServiceDiscovery) Refresh

type ServiceDiscovery

type ServiceDiscovery interface {
	// Refresh called every 10s before session reset
	Refresh(ctx context.Context) error

	// GetLabels may return nil
	GetLabels(pid uint32) *spy.Labels
}

func NewK8ServiceDiscovery

func NewK8ServiceDiscovery(ctx context.Context, logger log.Logger, nodeName string) (ServiceDiscovery, error)

Jump to

Keyboard shortcuts

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