Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultDialer = net.Dialer{}
Functions ¶
This section is empty.
Types ¶
type Resolver ¶
type Resolver interface { Dial // Add adds the resolver to the methods of creating the IPv4 and IPv6 addresses Add(r Lookup) error // Remove removes the resolver to the methods of creating the IPv4 and IPv6 addresses Remove(r Lookup) error }
Resolver represents how to generate the address and how to create the connection
type RoundRobin ¶
type RoundRobin struct {
// contains filtered or unexported fields
}
func NewRoundRobinBalancer ¶
func NewRoundRobinBalancer() *RoundRobin
func (*RoundRobin) Add ¶
func (robin *RoundRobin) Add(route Route) error
func (*RoundRobin) Get ¶
func (robin *RoundRobin) Get() ([]Route, error)
func (*RoundRobin) Remove ¶
func (robin *RoundRobin) Remove(route Route) error
func (*RoundRobin) Update ¶
func (robin *RoundRobin) Update(routes []Route)
Click to show internal directories.
Click to hide internal directories.