ringhash

package
v1.41.0-dev Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package ringhash contains the functionality to support Ring Hash in grpc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRequestHashForTesting

func GetRequestHashForTesting(ctx context.Context) uint64

GetRequestHashForTesting returns the request hash in the context; to be used for testing only.

func SetRequestHash

func SetRequestHash(ctx context.Context, requestHash uint64) context.Context

SetRequestHash adds the request hash to the context for use in Ring Hash Load Balancing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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