Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LBFactory ¶
type LBFactory struct {
// contains filtered or unexported fields
}
func NewLBFactory ¶
func (*LBFactory) MakeLb ¶
func (f *LBFactory) MakeLb(entry *entries.Entry, algo entries.LBAlgo) Loadbalancer
type Loadbalancer ¶
type Random ¶
type Random struct {
// contains filtered or unexported fields
}
type RoundRobin ¶
type RoundRobin struct {
// contains filtered or unexported fields
}
func NewRoundRobin ¶
func NewRoundRobin(entry *entries.Entry) *RoundRobin
func (*RoundRobin) Name ¶ added in v0.18.2
func (rr *RoundRobin) Name() string
func (*RoundRobin) Next ¶
func (rr *RoundRobin) Next(_ context.Context, memberType MemberType) (*entries.Member, error)
func (*RoundRobin) Reset ¶
func (rr *RoundRobin) Reset() error
type Topology ¶
type Topology struct {
// contains filtered or unexported fields
}
func NewTopology ¶
type WeightedRoundRobin ¶
type WeightedRoundRobin struct {
// contains filtered or unexported fields
}
func NewWeightedRoundRobin ¶
func NewWeightedRoundRobin(entry *entries.Entry) *WeightedRoundRobin
func (*WeightedRoundRobin) Name ¶ added in v0.18.2
func (wrr *WeightedRoundRobin) Name() string
func (*WeightedRoundRobin) Next ¶
func (wrr *WeightedRoundRobin) Next(_ context.Context, memberType MemberType) (*entries.Member, error)
func (*WeightedRoundRobin) Reset ¶
func (wrr *WeightedRoundRobin) Reset() error
Click to show internal directories.
Click to hide internal directories.