package
18.0.0-dev.vnet-windows.4+incompatible
Repository: https://github.com/gravitational/teleport.git
Documentation: pkg.go.dev
# Functions
AddMetadataToContext returns a new context copied from ctx with the given raw metadata added.
ClientVersionFromContext can be called from a gRPC server method to return the client version that was added to the gRPC metadata by StreamClientInterceptor or UnaryClientInterceptor on the client.
SessionRecordingFormatFromContext returns the format of the accessed session recording (if present).
StreamClientInterceptor intercepts a gRPC client stream call and adds default metadata to the context.
StreamServerInterceptor intercepts a gRPC client stream call and adds default metadata to the context.
UnaryClientInterceptor intercepts a gRPC client unary call and adds default metadata to the context.
UnaryServerInterceptor intercepts a gRPC server unary call and adds default metadata to the context.
UserAgentFromContext returns the user agent from GRPC client metadata.
VersionFromMetadata attempts to extract the standard version metadata value that is added to client and server headers by the interceptors in this package.
WithSessionRecordingFormatContext returns a context.Context containing the format of the accessed session recording.
WithUserAgentFromTeleportComponent returns a grpc.DialOption that reports the Teleport component and the API version for user agent.
# Constants
No description provided by the author
No description provided by the author
# Structs
DisableInterceptors can be set on the client context with context.WithValue(ctx, DisableInterceptors{}, struct{}{}) to stop the client interceptors from adding any metadata to the context (useful for testing).