package
1.1.3
Repository: https://github.com/permify/permify.git
Documentation: pkg.go.dev

# Functions

NewConsistentHashBalancerBuilder returns a consistentHashBalancerBuilder.
NewConsistentHashPicker initializes and returns a new ConsistentHashPicker.
NewQueue returns a new queue.

# Constants

ConnectionLifetime specifies the duration for which a connection is maintained before being considered for termination or renewal.
Key is the context key used to retrieve the hash key for consistent hashing.
Policy defines the name or identifier for the consistent hashing load balancing policy.

# Variables

ErrSubConnMissing indicates that a SubConn (sub-connection) was expected but not found.
ErrSubConnResetFailure indicates an error occurred while trying to reset the SubConn.

# Structs

ConsistentHashPicker is a custom gRPC picker that uses consistent hashing to determine which backend server should handle the request.
PickResult represents the result of a pick operation.
Queue is a basic FIFO queue based on a doubly linked list.