Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrGRPCNotEnabled = ewrap.New("grpc middleware requires build tag 'grpc'")
ErrGRPCNotEnabled indicates that the gRPC middleware was built without gRPC support.
Functions ¶
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(opts ...Option) grpc.UnaryServerInterceptor
UnaryServerInterceptor returns a stub interceptor when the gRPC build tag is not provided.
Types ¶
type Option ¶
type Option func(*options)
Option defines a configuration option for the gRPC middleware.
func WithRequestKey ¶
WithRequestKey customizes the metadata key used to populate the request identifier.
func WithTraceKey ¶
WithTraceKey customizes the metadata key used to populate the trace identifier.
Click to show internal directories.
Click to hide internal directories.