load_banlancing

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoadBalancing

type LoadBalancing interface {
	InitBalancing(ser []*discovery.Server)
	GetService() (*discovery.Server, error)
}

type Polling

type Polling struct {
	// contains filtered or unexported fields
}

Polling 轮训

func NewPolling

func NewPolling() *Polling

func (*Polling) GetService

func (p *Polling) GetService() (*discovery.Server, error)

func (*Polling) InitBalancing

func (p *Polling) InitBalancing(sers []*discovery.Server)

Jump to

Keyboard shortcuts

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