rst

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbortWithError added in v0.0.14

func AbortWithError(c *gin.Context, err error)

func ErrorHandler

func ErrorHandler(c *gin.Context)

ErrorHandler a middleware to handle errors

func GetHeaderToken

func GetHeaderToken(c *gin.Context) (string, error)

get token from Authorization header

func GinLogger

func GinLogger(c *gin.Context, fluentUrl string, serverName string) log.LogRusEntry

func IsDbUniqueKeyError added in v0.0.15

func IsDbUniqueKeyError(err error) bool

IsDbUniqueKeyError retorna true si el error es de indice único

Types

type ErrorData

type ErrorData struct {
	Error string `json:"error"`
}

Jump to

Keyboard shortcuts

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