Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoundRobin ¶
type RoundRobin struct {
// contains filtered or unexported fields
}
func NewRoundRobin ¶
func NewRoundRobin() *RoundRobin
func (*RoundRobin) Index ¶
func (r *RoundRobin) Index(lens int) (index int)
func (*RoundRobin) Pick ¶
func (r *RoundRobin) Pick(values []string) string
type Weight ¶
type Weight struct {
Servers []Server
ModelAgents []*model.ModelAgent
Keys []*model.Key
// contains filtered or unexported fields
}
func NewKeyWeight ¶
func NewModelAgentWeight ¶
func NewModelAgentWeight(modelAgents []*model.ModelAgent) *Weight
func (*Weight) PickModelAgent ¶
func (w *Weight) PickModelAgent() *model.ModelAgent
Click to show internal directories.
Click to hide internal directories.