proxy

package
v0.0.0-...-63c0f08 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Balancer

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

func NewBalancer

func NewBalancer() *Balancer

func (*Balancer) AddServer

func (b *Balancer) AddServer(item *netmanager.ServerNet)

func (Balancer) LoadBalance

func (b Balancer) LoadBalance(j job.Job) (job.Init, job.Run, job.Finalize)

func (*Balancer) SelectRandom

func (b *Balancer) SelectRandom() *netmanager.ServerNet

type UpstreamList

type UpstreamList []*netmanager.ServerNet

Jump to

Keyboard shortcuts

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