Documentation ¶
Index ¶
- func UnaryInterceptor(options ...Option) grpc.UnaryServerInterceptor
- type ErrDetailObjectMarshaler
- type Option
- func WithErrorHandler(handler func(ctx context.Context, err error) []zapcore.Field) Option
- func WithOperationCompleted(enable bool) Option
- func WithOperationStarted(enable bool) Option
- func WithRequestExtractor(...) Option
- func WithResponseExtractor(extractor func(ctx context.Context, resp interface{}) zapcore.ObjectMarshaler) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnaryInterceptor ¶
func UnaryInterceptor(options ...Option) grpc.UnaryServerInterceptor
Types ¶
type ErrDetailObjectMarshaler ¶
type ErrDetailObjectMarshaler struct {
// contains filtered or unexported fields
}
func (ErrDetailObjectMarshaler) MarshalLogObject ¶
func (e ErrDetailObjectMarshaler) MarshalLogObject(encoder zapcore.ObjectEncoder) error
type Option ¶
type Option func(*loggingOptions)
func WithErrorHandler ¶
func WithOperationCompleted ¶
func WithOperationStarted ¶
func WithRequestExtractor ¶
func WithResponseExtractor ¶
func WithResponseExtractor(extractor func(ctx context.Context, resp interface{}) zapcore.ObjectMarshaler) Option
Click to show internal directories.
Click to hide internal directories.