Versions in this module Expand all Collapse all v2 v2.6.5 Mar 21, 2024 v2.6.4 Mar 19, 2024 Changes in this version + func SetBuilder(builder Builder) + type Builder interface + Build func() Selector + Name func() string + func GetBuilder() Builder + func NewBuilderLeastConnection() Builder + func NewBuilderRandom() Builder + func NewBuilderRoundRobin() Builder + func NewBuilderWeight() Builder + type DoneFunc func(ctx context.Context, di DoneInfo) + type DoneInfo struct + BytesReceived bool + BytesSent bool + Err error + ServerLoad interface{} + Trailer DoneInfoMD + type DoneInfoMD interface + Append func(k string, values ...string) + Delete func(k string) + Get func(k string) []string + Len func() int + Set func(key string, values ...string) + type Node interface + Address func() string + Service func() gsvc.Service + type Nodes []Node + func (ns Nodes) String() string + type Selector interface + Pick func(ctx context.Context) (node Node, done DoneFunc, err error) + Update func(ctx context.Context, nodes Nodes) error + func NewSelectorLeastConnection() Selector + func NewSelectorRandom() Selector + func NewSelectorRoundRobin() Selector + func NewSelectorWeight() Selector