strategy

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 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 added in v1.6.7

func NewWeightedResponseTime() servicediscovery.Strategy

Types

type ICMP

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

定义ICMP协议结构体

type RoundRobin added in v1.6.7

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

func (*RoundRobin) Next added in v1.6.7

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