Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RandomWeightedPool ¶
type RandomWeightedPool struct {
// contains filtered or unexported fields
}
RandomWeightedPool defines pool of services
func NewRandomWeightedPool ¶
func NewRandomWeightedPool(config *config.ConfFile, refresh time.Duration, timeout time.Duration) *RandomWeightedPool
NewRandomWeightedPool new random weighted pool of services
func (*RandomWeightedPool) Next ¶
func (p *RandomWeightedPool) Next() (string, error)
Next returns next url
Click to show internal directories.
Click to hide internal directories.