Documentation ¶
Index ¶
- type IP
- type Upstream
- func (u *Upstream) Fail(o *IP)
- func (u *Upstream) GetN(maxIP int, remote, path string) ([]*IP, error)
- func (u *Upstream) RefreshIP(ctx context.Context) ([]*IP, error)
- func (u *Upstream) Release(o *IP)
- func (u *Upstream) Run(ctx context.Context, interval time.Duration)
- func (u *Upstream) Stop()
- func (u *Upstream) Use(o *IP)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Upstream ¶
type Upstream struct {
// contains filtered or unexported fields
}
Upstream struct
func New ¶
func New(upstream, balancing string, maxFails int, interval time.Duration, logger *zap.Logger) (*Upstream, error)
New :
Click to show internal directories.
Click to hide internal directories.