Documentation ¶
Index ¶
- func AddFields(ctx context.Context, fields ...zap.Field)
- func Logger(ctx context.Context) *zap.Logger
- func NewLogger(isDev bool) (*zap.Logger, error)
- func NewMiddleware(gcpProjectID string, logger *zap.Logger) func(next http.Handler) http.Handler
- func NewUnaryServerInterceptor(gcpProjectID string) grpc.UnaryServerInterceptor
- type GraphQLResponseInterceptor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMiddleware ¶
Middleware is set logger with request id to context
func NewUnaryServerInterceptor ¶
func NewUnaryServerInterceptor(gcpProjectID string) grpc.UnaryServerInterceptor
UnaryServerInterceptor returns a new unary server interceptors that logs request.
Types ¶
type GraphQLResponseInterceptor ¶
type GraphQLResponseInterceptor struct{}
func (GraphQLResponseInterceptor) ExtensionName ¶
func (g GraphQLResponseInterceptor) ExtensionName() string
func (GraphQLResponseInterceptor) InterceptResponse ¶
func (g GraphQLResponseInterceptor) InterceptResponse(ctx context.Context, next graphql.ResponseHandler) *graphql.Response
func (GraphQLResponseInterceptor) Validate ¶
func (g GraphQLResponseInterceptor) Validate(schema graphql.ExecutableSchema) error
Click to show internal directories.
Click to hide internal directories.