upstream

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const LoadBalancerRoundRobin = "round_robin"

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct{}

func NewFactory

func NewFactory() *Factory

func (*Factory) NewUpstream

func (f *Factory) NewUpstream(upsConf config.UpstreamConfig) (*Upstream, error)

type Node added in v0.1.1

type Node struct {
	ServiceName string
	URL         *url.URL
}

type Upstream

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

func (*Upstream) Name added in v0.1.1

func (u *Upstream) Name() string

func (*Upstream) SelectNode

func (u *Upstream) SelectNode() *Node

func (*Upstream) UpdateNodes added in v0.1.1

func (u *Upstream) UpdateNodes(nodes []*Node)

Jump to

Keyboard shortcuts

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