gin_mw

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 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(gc *gin.Context)

func LoggerHandler

func LoggerHandler(logger Logger) gin.HandlerFunc

Types

type ErrResponse

type ErrResponse struct {
	Status string   `json:"status"`
	Errors []string `json:"errors"`
}

type ErrorWithCode

type ErrorWithCode interface {
	Error() string
	Unwrap() error
	Code() int
}

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