Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
func NewInstance ¶
func (*Instance) Score ¶
> 0 healthy; < 0 unhealthy; == 0 unknown, more high score more health, can also use as weight
func (*Instance) UpdateScore ¶
func (*Instance) UpdateValue ¶
func (ins *Instance) UpdateValue(v interface{})
type RoundRobin ¶
type RoundRobin struct {
// contains filtered or unexported fields
}
scheduler implement
func (*RoundRobin) UpdateStatus ¶
func (rr *RoundRobin) UpdateStatus(index int, score int32)
Click to show internal directories.
Click to hide internal directories.