Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadFromConfig ¶
func LoadFromConfig()
func NextNode ¶
func NextNode(chain string) *aggregator.Node
func SetNodes ¶
func SetNodes(chain string, nodes []aggregator.Node)
Types ¶
type WrSelector ¶
type WrSelector struct {
// contains filtered or unexported fields
}
WrSelector weighted-random selector
func (*WrSelector) NextNode ¶
func (s *WrSelector) NextNode() *aggregator.Node
func (*WrSelector) SetNodes ¶
func (s *WrSelector) SetNodes(nodes []aggregator.Node)
Click to show internal directories.
Click to hide internal directories.