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 ¶
func (t Topology) Gateways(ctx context.Context, _ *dpb.GatewaysRequest) (*dpb.GatewaysResponse, error)
Gateways discovers gateways in this topology.
func (Topology) HiddenSegmentServices ¶
func (t Topology) HiddenSegmentServices(ctx context.Context, _ *dpb.HiddenSegmentServicesRequest) (*dpb.HiddenSegmentServicesResponse, error)
HiddenSegmentServices discovers hidden segment services in this topology.
func (Topology) RequestsLabels ¶
RequestsLabels exposes the labels required by the Requests metric.
type TopologyInformation ¶ added in v0.7.0
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. |
Click to show internal directories.
Click to hide internal directories.