discovery

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Topology

type Topology struct {
	// Information is the toplogy information.
	Information TopologyInformation

	// Requests aggregates all the incoming requests received by the handler.
	// If it is not initialized, nothing is reported.
	Requests metrics.Counter
}

Topology implements a service discovery server based on the topology information.

func (Topology) Gateways

Gateways discovers gateways in this topology.

func (Topology) HiddenSegmentServices

HiddenSegmentServices discovers hidden segment services in this topology.

func (Topology) RequestsLabels

func (t Topology) RequestsLabels() []string

RequestsLabels exposes the labels required by the Requests metric.

type TopologyInformation

type TopologyInformation interface {
	// Gateways returns all the Gateways in the AS.
	Gateways() ([]topology.GatewayInfo, error)
	// HiddenSegmentLookupAddresses returns the addresses of the hidden segment
	// lookup services.
	HiddenSegmentLookupAddresses() ([]*net.UDPAddr, error)
	// HiddenSegmentRegistrationAddresses returns the addresses of the hidden
	// segment registration services.
	HiddenSegmentRegistrationAddresses() ([]*net.UDPAddr, error)
}

TopologyInformation provides the discovery service with topology information.

Directories

Path Synopsis
Package mock_discovery is a generated GoMock package.
Package mock_discovery is a generated GoMock package.

Jump to

Keyboard shortcuts

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