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.
Click to show internal directories.
Click to hide internal directories.