package
3.0.0-rc.3+incompatible
Repository: https://github.com/vitessio/vitess.git
Documentation: pkg.go.dev
# Functions
EffectiveCallerIDFromContext returns the EffectiveCallerID(vtrpcpb.CallerID) stored in the Context, if any.
GetComponent returns the running process of the effective caller.
GetPrincipal returns the effective user identifier, which is usually filled in with whoever made the request to the appserver, if the request came from an automated job or another system component.
GetSubcomponent returns a component inside the process of effective caller, which is responsible for generating this request.
GetUsername returns the immediate caller of VTGate.
ImmediateCallerIDFromContext returns the ImmediateCallerID(querypb.VTGateCallerID) stored in the Context, if any.
NewContext adds the provided EffectiveCallerID(vtrpcpb.CallerID) and ImmediateCallerID(querypb.VTGateCallerID) into the Context.
NewEffectiveCallerID creates a new vtrpcpb.CallerID with principal, component and subComponent.
NewImmediateCallerID creates a querypb.VTGateCallerID initialized with username.