Documentation ¶
Index ¶
- func GRPCContextStreamWrapper(ctxWrapper func(ctx context.Context) (context.Context, error)) grpc.StreamServerInterceptor
- func GRPCContextUnaryWrapper(ctxWrapper func(ctx context.Context) (context.Context, error)) grpc.UnaryServerInterceptor
- func GRPCErrorStreamWrapper(srv any, ss grpc.ServerStream, info *grpc.StreamServerInfo, ...) error
- func GRPCErrorUnaryWrapper(ctx context.Context, req any, info *grpc.UnaryServerInfo, ...) (resp any, err error)
- func HTTPContextWrapper(h http.Handler, ctxWrapper func(ctx context.Context) context.Context) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GRPCContextStreamWrapper ¶
func GRPCContextStreamWrapper(ctxWrapper func(ctx context.Context) (context.Context, error)) grpc.StreamServerInterceptor
GRPCContextStreamWrapper implements wrapper of stream handler with context overriding
func GRPCContextUnaryWrapper ¶
func GRPCContextUnaryWrapper(ctxWrapper func(ctx context.Context) (context.Context, error)) grpc.UnaryServerInterceptor
GRPCContextUnaryWrapper implements wrapper of unary handler with context overriding
func GRPCErrorStreamWrapper ¶
func GRPCErrorStreamWrapper(srv any, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error
GRPCErrorStreamWrapper implements wrapper of stream handler with error processing
func GRPCErrorUnaryWrapper ¶
func GRPCErrorUnaryWrapper(ctx context.Context, req any, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp any, err error)
GRPCErrorUnaryWrapper implements wrapper of unary handler with session in context
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.