strategy

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRandom

func NewRandom() servicediscovery.Strategy

NewRandom returns a load balancer that selects services randomly.

func NewRound

func NewRound() servicediscovery.Strategy

NewRandom returns a load balancer that selects services randomly.

func NewWeightedResponseTime

func NewWeightedResponseTime() servicediscovery.Strategy

Types

type ICMP

type ICMP struct {
	Type        uint8
	Code        uint8
	CheckSum    uint16
	Identifier  uint16
	SequenceNum uint16
}

定义ICMP协议结构体

type RoundRobin

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

func (*RoundRobin) Next

type WeightedResponseTime

type WeightedResponseTime struct {
}

func (*WeightedResponseTime) Next

Jump to

Keyboard shortcuts

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