Documentation
¶
Index ¶
- Constants
- func ErrorCtx(ctx context.Context, err error) context.Context
- func NewMockLogger() *slog.Logger
- func SetupLogger(env string) *slog.Logger
- func WithLogOp(ctx context.Context, op string) context.Context
- func WithLogRequestID(ctx context.Context, requestID string) context.Context
- func WithLogUserID(ctx context.Context, userID string) context.Context
- func Wrap(ctx context.Context, err error) error
- type DevelopHandler
- type MockHandler
Constants ¶
View Source
const LogKey = ctxKeyLog(0)
Variables ¶
This section is empty.
Functions ¶
func NewMockLogger ¶
func SetupLogger ¶
func WithLogRequestID ¶
Types ¶
type DevelopHandler ¶
type DevelopHandler struct {
// contains filtered or unexported fields
}
func NewDevelopHandler ¶
func NewDevelopHandler(h slog.Handler) *DevelopHandler
type MockHandler ¶
type MockHandler struct{}
Click to show internal directories.
Click to hide internal directories.