gin_mw

package module
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 5 Imported by: 4

README

gin-middleware

GitHub tag (latest by date)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorHandler

func ErrorHandler(f func(error) int, sep string) gin.HandlerFunc

func LoggerHandler

func LoggerHandler(logger Logger, pathFilter []string, generators ...func(*gin.Context) string) gin.HandlerFunc

func StaticHeaderHandler added in v0.3.0

func StaticHeaderHandler(items map[string]string) gin.HandlerFunc

Types

type Logger

type Logger interface {
	Error(v ...any)
	Debug(v ...any)
}

Jump to

Keyboard shortcuts

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