Documentation ¶
Index ¶
Constants ¶
View Source
const EndpointPort = 9923
Port is the port to listen for updates to endpoints. TODO make dynamic
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Balancer ¶
Balancer is a load balancer.
func (*Balancer) ListenForEndpoints ¶
ListenForEndpoints listens for updates endpoints.
type Endpoint ¶
Endpoint is a port forwarding endpoint.
func ParseEndpoint ¶
ParseEndpoint creates a new Endpoint from addr.
type Endpoints ¶
type Endpoints []Endpoint
Endpoints is a list of Endpoint.
type RoundRobin ¶
type RoundRobin struct {
// contains filtered or unexported fields
}
RoundRobin is a round robin policy.
func (*RoundRobin) Select ¶
func (r *RoundRobin) Select(e Endpoints) Endpoint
Select satisfies Policy.
Click to show internal directories.
Click to hide internal directories.