Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInputNotSlice = errors.New("Input value is not silice") ErrNoAvaliableNode = errors.New("No nodes avaliable") )
Functions ¶
This section is empty.
Types ¶
type RoundRobin ¶
type RoundRobin struct {
// contains filtered or unexported fields
}
func (*RoundRobin) NextPeer ¶
func (r *RoundRobin) NextPeer(nodes interface{}) (error, interface{})
NextPeer 返回轮盘的下一节点
Click to show internal directories.
Click to hide internal directories.