server

package
v0.0.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiInjectorMiddleware

func DiInjectorMiddleware() gin.HandlerFunc

func ErrorHandler

func ErrorHandler(c *gin.Context)

ErrorHandler a middleware to handle errors

func GinDi

func GinDi(c *gin.Context) di.Injector

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