package ringhash
import "google.golang.org/grpc/xds/internal/balancer/ringhash"
Package ringhash contains the functionality to support Ring Hash in grpc.
Index ¶
- func GetRequestHashForTesting(ctx context.Context) uint64
- func SetRequestHash(ctx context.Context, requestHash uint64) context.Context
Functions ¶
func GetRequestHashForTesting ¶
GetRequestHashForTesting returns the request hash in the context; to be used for testing only.
func SetRequestHash ¶
SetRequestHash adds the request hash to the context for use in Ring Hash Load Balancing.
Source Files ¶
util.go
- Version
- v1.40.1
- Published
- Dec 1, 2021
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 44 minutes ago –
Tools for package owners.