consistenthash

package
v0.0.0-...-2a88403 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name 一致性 hash 平衡器的注册名称
	Name = "consistent_hash"
	// DefaultKey 默认的用于计算一致性 hash 的 key
	DefaultKey = ContextKey("X-Consistent-Hash")
)

Variables

This section is empty.

Functions

func RegisterBuilder

func RegisterBuilder(chKey ...ContextKey)

RegisterBuilder 注册一致性 hash 构建器

Types

type ContextKey

type ContextKey string

ContextKey 上下文 key 类型

func (ContextKey) String

func (c ContextKey) String() string

String 实现序列化字符串方法

Jump to

Keyboard shortcuts

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