loadbalance

package
v0.0.0-...-be62643 Latest Latest
Warning

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

Go to latest
Published: May 27, 2021 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoadBalance

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

func GetLoadBalance

func GetLoadBalance() *LoadBalance

func NewLoadBalance

func NewLoadBalance() *LoadBalance

func (*LoadBalance) Check

func (l *LoadBalance) Check()

func (*LoadBalance) ServiceSelect

func (l *LoadBalance) ServiceSelect(remoteIp string) (*ServiceInstance, error)

func (*LoadBalance) Update

func (l *LoadBalance) Update(name string, router []string) error

type ServiceInstance

type ServiceInstance struct {
	Host      string
	Port      int
	Weight    int
	CurWeight int
	Cnt       int
}

Jump to

Keyboard shortcuts

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