Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoHostsToBalance = errors.New("no hosts to balance")
)
Functions ¶
This section is empty.
Types ¶
type RoundRobin ¶
type RoundRobin struct {
// contains filtered or unexported fields
}
func NewRoundRobin ¶
func NewRoundRobin(hosts []string) *RoundRobin
func (*RoundRobin) Next ¶
func (b *RoundRobin) Next() (string, error)
func (*RoundRobin) Size ¶
func (b *RoundRobin) Size() int
func (*RoundRobin) Upgrade ¶
func (b *RoundRobin) Upgrade(hosts []string)
Click to show internal directories.
Click to hide internal directories.