Documentation ¶
Index ¶
- Constants
- func ClientName(ctx context.Context) string
- func StreamClientInterceptor(clientName string) grpc.StreamClientInterceptor
- func StreamServerInterceptor() grpc.StreamServerInterceptor
- func UnaryClientInterceptor(clientName string) grpc.UnaryClientInterceptor
- func UnaryServerInterceptor() grpc.UnaryServerInterceptor
Constants ¶
View Source
const ContextKey = "client_name"
View Source
const MetadataKey = "client-name"
View Source
const UnknownClient = "unknown"
Variables ¶
This section is empty.
Functions ¶
func ClientName ¶
func StreamClientInterceptor ¶
func StreamClientInterceptor(clientName string) grpc.StreamClientInterceptor
func StreamServerInterceptor ¶
func StreamServerInterceptor() grpc.StreamServerInterceptor
func UnaryClientInterceptor ¶
func UnaryClientInterceptor(clientName string) grpc.UnaryClientInterceptor
func UnaryServerInterceptor ¶
func UnaryServerInterceptor() grpc.UnaryServerInterceptor
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.