middleware

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SeverityDefault = slog.LevelInfo
	SeverityInfo    = slog.LevelInfo
	SeverityWarn    = slog.LevelWarn
	SeverityError   = slog.LevelError
	SeverityNotice  = slog.LevelInfo
)

Log level 定義

Functions

func CORS

func CORS() gin.HandlerFunc

func New

func New() *slog.Logger

logger 生成関数

func RequestLogger

func RequestLogger(l *slog.Logger) gin.HandlerFunc

Types

type RequestInfo

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

func (*RequestInfo) LogValue

func (r *RequestInfo) LogValue() slog.Value

Jump to

Keyboard shortcuts

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