loader

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LimitReqCache *utils.ECache
	Routes        []*RouteInfo
)

Functions

This section is empty.

Types

type BalancerType

type BalancerType int
const (
	RoundRobinBalancer  BalancerType = 0
	RandomBalancer      BalancerType = 1
	WRoundRobinBalancer BalancerType = 2
)

type MatchType

type MatchType int
const (
	ExactMatch  MatchType = 0
	PrefixMatch MatchType = 1
	RegexMatch  MatchType = 2
)

type RouteInfo

type RouteInfo struct {
	Endpoint      string
	Match         MatchType
	TargetServer  *balancer.Server
	IsMultiTarget bool
	Balancer      balancer.Balancer
}

func (*RouteInfo) GetTargetServer

func (routeInfo *RouteInfo) GetTargetServer() *balancer.Server

Jump to

Keyboard shortcuts

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