package
23.2.20+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
ContextWithServerIdentification returns a context annotated with the provided server identity.
No description provided by the author
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.
IdentifyTenantLabel retrieves the tenant name of the server.
# Variables
SystemTenantID is the string representation of roachpb.SystemTenantID.
# Structs
No description provided by the author
ServerIdentificationContextKey is the type of a context.Value key used to carry ServerIdentificationPayload values.
# 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.