Documentation
¶
Index ¶
- func ClientLoggingInterceptor(ctx context.Context, method string, req, reply any, cc *grpc.ClientConn, ...) error
- func ClientRequestIDInterceptor(ctx context.Context, method string, req, reply any, cc *grpc.ClientConn, ...) error
- func ClientStreamInterceptor(ctx context.Context, desc *grpc.StreamDesc, cc *grpc.ClientConn, method string, ...) (grpc.ClientStream, error)
- func ServerLoggingInterceptor(ctx context.Context, req any, info *grpc.UnaryServerInfo, ...) (any, error)
- func ServerRequestIDInterceptor(ctx context.Context, req any, info *grpc.UnaryServerInfo, ...) (any, error)
- func ServerStreamLoggingInterceptor(srv any, ss grpc.ServerStream, info *grpc.StreamServerInfo, ...) error
- func ServerStreamRequestIDInterceptor(srv any, ss grpc.ServerStream, info *grpc.StreamServerInfo, ...) error
- type LogLevel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientLoggingInterceptor ¶
func ClientLoggingInterceptor( ctx context.Context, method string, req, reply any, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption, ) error
func ClientRequestIDInterceptor ¶
func ClientRequestIDInterceptor( ctx context.Context, method string, req, reply any, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption, ) error
func ClientStreamInterceptor ¶
func ClientStreamInterceptor(ctx context.Context, desc *grpc.StreamDesc, cc *grpc.ClientConn, method string, streamer grpc.Streamer, opts ...grpc.CallOption) (grpc.ClientStream, error)
func ServerLoggingInterceptor ¶
func ServerLoggingInterceptor( ctx context.Context, req any, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler, ) (any, error)
func ServerRequestIDInterceptor ¶
func ServerRequestIDInterceptor( ctx context.Context, req any, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler, ) (any, error)
func ServerStreamLoggingInterceptor ¶
func ServerStreamLoggingInterceptor( srv any, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler, ) error
func ServerStreamRequestIDInterceptor ¶
func ServerStreamRequestIDInterceptor( srv any, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler, ) error
Types ¶
type LogLevel ¶ added in v0.0.4
type LogLevel string
func (LogLevel) ToLogrusLevel ¶ added in v0.0.4
func (*LogLevel) UnmarshalText ¶ added in v0.0.4
Click to show internal directories.
Click to hide internal directories.