Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ILoadBalancer ¶
type ILoadBalancer interface {
GetNextServer() string // Returns an address to the next available server
}
func NewLoadBalancer ¶
func NewLoadBalancer(srvs []string) ILoadBalancer
Creates a new instance of load balancer
type ITunnel ¶
type ITunnel interface {
AllocateHost() (ITunnelHost, error)
}
type ITunnelHost ¶
type LoadBalancer ¶
type LoadBalancer struct {
// contains filtered or unexported fields
}
func (*LoadBalancer) GetNextServer ¶
func (lb *LoadBalancer) GetNextServer() string
Retrieve the next server
Click to show internal directories.
Click to hide internal directories.