endpointdiscovery

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Less

func Less(e1, e2 Endpoint) bool

Types

type Endpoint

type Endpoint struct {
	Address string
	Port    int32
}

type EndpointGroups

type EndpointGroups map[string][]Endpoint

groups endpoints by their respective upstream name

type Interface

type Interface interface {
	// starts the discovery service
	Run(stop <-chan struct{})

	// tells the discovery to track endpoints for the given upstreams
	TrackUpstreams(upstreams []*v1.Upstream)

	// endpoint groups are pushed here whenever they are updated
	Endpoints() <-chan EndpointGroups

	// should show valid if the most recent update passed, otherwise a useful error
	Error() <-chan error
}

Jump to

Keyboard shortcuts

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