Documentation ¶
Index ¶
- func EncodeResponse[T any](w http.ResponseWriter, statusCode int, v any) error
- type ContextKey
- type CustomJsonLogger
- func (l *CustomJsonLogger) Debug(ctx context.Context, message string, args ...any)
- func (l *CustomJsonLogger) Error(ctx context.Context, message string, args ...any)
- func (l *CustomJsonLogger) Info(ctx context.Context, message string, args ...any)
- func (l *CustomJsonLogger) Warn(ctx context.Context, message string, args ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeResponse ¶
Types ¶
type CustomJsonLogger ¶
type CustomJsonLogger struct {
// contains filtered or unexported fields
}
func NewCustomJsonLogger ¶
func NewCustomJsonLogger(w io.Writer, logLevel slog.Leveler) CustomJsonLogger
func (*CustomJsonLogger) Debug ¶
func (l *CustomJsonLogger) Debug(ctx context.Context, message string, args ...any)
func (*CustomJsonLogger) Error ¶
func (l *CustomJsonLogger) Error(ctx context.Context, message string, args ...any)
Click to show internal directories.
Click to hide internal directories.