pool

package
v0.0.0-...-a9cd8ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL