Documentation ¶
Index ¶
Constants ¶
const AuthVersionKey = "grpc.meta.auth_version"
AuthVersionKey is the key used in ctx_tags to store the auth version
const CallSiteKey = "grpc.meta.call_site"
CallSiteKey is the key used in ctx_tags to store the client feature
const ClientNameKey = "grpc.meta.client_name"
ClientNameKey is the key used in ctx_tags to store the client name
const CorrelationIDKey = "correlation_id"
CorrelationIDKey is the key used in ctx_tags to store the correlation ID
const DeadlineTypeKey = "grpc.meta.deadline_type"
DeadlineTypeKey is the key used in ctx_tags to store the deadline type
const MethodOperationKey = "grpc.meta.method_operation"
MethodOperationKey is one of "mutator", "accessor" or "maintenance" and corresponds to the `MethodOptions` extension.
const MethodScopeKey = "grpc.meta.method_scope"
MethodScopeKey is one of "repository" or "storage" and corresponds to the `MethodOptions` extension.
const MethodTypeKey = "grpc.meta.method_type"
MethodTypeKey is one of "unary", "client_stream", "server_stream", "bidi_stream"
const RemoteIPKey = "remote_ip"
RemoteIPKey is the key used in ctx_tags to store the remote_ip
const UserIDKey = "user_id"
UserIDKey is the key used in ctx_tags to store the user_id
const UsernameKey = "username"
UsernameKey is the key used in ctx_tags to store the username
Variables ¶
This section is empty.
Functions ¶
func StreamInterceptor ¶
func StreamInterceptor(srv interface{}, stream grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error
StreamInterceptor returns a Stream Interceptor
func UnaryInterceptor ¶
func UnaryInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
UnaryInterceptor returns a Unary Interceptor
Types ¶
This section is empty.