gin

package
v1.23.10 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// GinPackagePath is the import path of the gin package.
	GinPackagePath = "github.com/gin-gonic/gin"
	// GinContextType is the type of the context variable.
	GinContextType = "Context"
	// GinContextIsPointer is whether the context variable is a pointer for the handler functions.
	GinContextIsPointer = true
)

Variables

This section is empty.

Functions

func CreateRoutes

func CreateRoutes(router *gin.Engine) astra.ServiceFunction

CreateRoutes creates routes from a gin routes. It will only create the routes and refer to the handler function by name, file and line number. The routes will be populated later by parseRoutes. It will individually call createRoute for each route.

func ParseRoutes

func ParseRoutes() astra.ServiceFunction

ParseRoutes parses routes from a gin routes. It will populate the routes with the handler function. It will individually call parseRoute for each route. createRoutes must be called before this.

Types

This section is empty.

Jump to

Keyboard shortcuts

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