server

package
v0.0.0-...-7962cae Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbortWithError

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

func ErrorHandler

func ErrorHandler(c *gin.Context)

ErrorHandler a middleware to handle errors

func GinCtx

func GinCtx(c *gin.Context) []interface{}

Obtiene el contexto a serivcios externos En prod este contexto esta vacio.

func GinLoggerMiddleware

func GinLoggerMiddleware(c *gin.Context)

func HeaderToken

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

get token from Authorization header

func Router

func Router() *gin.Engine

func ValidateAuthentication

func ValidateAuthentication(c *gin.Context)

ValidateAuthentication validate gets and check variable body to create new variable puts model.Variable in context as body if everything is correct

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