package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
ContextWithServerIdentification returns a context annotated with the provided server identity.
ServerIdentificationFromContext retrieves the server identity put in the context by ContextWithServerIdentification.
SetSystemTenantID is used to set the string representation of roachpb.SystemTenantID at initialization to avoid an import dependency cycle.
# Constants
IdentifyClusterID retrieves the cluster ID of the server.
IdentifyInstanceID retrieves the SQL instance ID of the server.
IdentifyKVNodeID retrieves the KV node ID of the server.
IdentifyTenantID retrieves the tenant ID of the server.
IdentifyTenantName retrieves the tenant name of the server.
# Variables
ServerIdentificationContextKey is the fast value key used to annotate a context with a ServerIdentificationPayload.
SystemTenantID is the string representation of roachpb.SystemTenantID.
# Interfaces
ServerIdentificationPayload is the type of a context.Value payload associated with a serverIdentificationContextKey.
# Type aliases
ServerIdentificationKey represents a possible parameter to the ServerIdentityString() method in ServerIdentificationPayload.