Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FieldsProducer ¶
FieldsProducer extracts custom fields info from the context and returns it as a logging fields.
func StreamInterceptor ¶
func StreamInterceptor(srv interface{}, stream grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error
StreamInterceptor returns a Stream Interceptor that initializes and injects a log.CustomFields object into the context
func UnaryInterceptor ¶
func UnaryInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
UnaryInterceptor returns a Unary Interceptor that initializes and injects a log.CustomFields object into the context
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.