strategy

package
v2.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash

func Hash(key []byte) client.CallOption

Hash 哈希询策略(hash)

func LeastLoad

func LeastLoad() client.CallOption

LeastLoad 最小负载策略(least-load)

func Random

func Random() client.CallOption

Random 随机策略(random)

func RoundRobin

func RoundRobin() client.CallOption

RoundRobin 轮询策略(round-robin)

func Weight added in v2.6.1

func Weight() client.CallOption

Weight 权重策略(weight strategy)

Types

This section is empty.

Jump to

Keyboard shortcuts

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