middleware

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileSystem

func FileSystem(next http.Handler) http.Handler

Types

type Logger

type Logger interface {
	DebugContext(ctx context.Context, msg string, args ...any)
	ErrorContext(ctx context.Context, msg string, args ...any)
	IsDebug() bool
}

type LoggerMiddleware

type LoggerMiddleware struct {
	// contains filtered or unexported fields
}

func NewLoggerMiddleware

func NewLoggerMiddleware(logger Logger) *LoggerMiddleware

func (*LoggerMiddleware) DebugLogger

func (lm *LoggerMiddleware) DebugLogger(next http.Handler) http.Handler

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL