Documentation ¶
Index ¶
- Constants
- func ContextInterceptor(ctx context.Context, req any, _ *grpc.UnaryServerInfo, ...) (any, error)
- func ContextStreamInterceptor(srv any, ss grpc.ServerStream, _ *grpc.StreamServerInfo, ...) error
- func LoggingInterceptor(ctx context.Context, req any, info *grpc.UnaryServerInfo, ...) (any, error)
- func StreamLoggingInterceptor(srv any, ss grpc.ServerStream, info *grpc.StreamServerInfo, ...) error
Constants ¶
View Source
const (
TxIdKey = "mdTxIdKey"
)
Variables ¶
This section is empty.
Functions ¶
func ContextInterceptor ¶ added in v1.0.0
func ContextInterceptor(ctx context.Context, req any, _ *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (any, error)
func ContextStreamInterceptor ¶ added in v1.0.0
func ContextStreamInterceptor(srv any, ss grpc.ServerStream, _ *grpc.StreamServerInfo, handler grpc.StreamHandler) error
func LoggingInterceptor ¶
func LoggingInterceptor(ctx context.Context, req any, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (any, error)
func StreamLoggingInterceptor ¶
func StreamLoggingInterceptor(srv any, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.