shard

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBuilder

func NewBuilder() (balancer.Builder, error)

func NewNamedBuilder added in v0.2.1

func NewNamedBuilder(name string) (balancer.Builder, error)

func WithShardKeyFunc added in v0.4.2

func WithShardKeyFunc(shardKeyFunc func(context.Context) string) builderOption

Types

type ShardLBCtxKeyType added in v0.1.3

type ShardLBCtxKeyType string
const (
	Name                                  = "shard"
	DefaultShardKeyName ShardLBCtxKeyType = "shard_key"
)

Jump to

Keyboard shortcuts

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