Documentation ¶
Index ¶
- func CreateDeleteRoute(path string, d fs.DirEntry, router *gin.Engine)
- func CreateGetRoute(path string, d fs.DirEntry, router *gin.Engine)
- func CreateHeadRoute(path string, d fs.DirEntry, router *gin.Engine)
- func CreateOptionsRoute(path string, d fs.DirEntry, router *gin.Engine)
- func CreatePatchRoute(path string, d fs.DirEntry, router *gin.Engine)
- func CreatePostRoute(path string, d fs.DirEntry, router *gin.Engine)
- func CreatePutRoute(path string, d fs.DirEntry, router *gin.Engine)
- func CreateRouter() *gin.Engine
- func FileResponse(L *lua.LState) int
- func FilesystemRouteToURLEndpoint(path string) string
- func GenerateFilesystemRoutes(router *gin.Engine)
- func HTMLResponse(L *lua.LState) int
- func HandleError(err error)
- func HandleHTTPError(code int) string
- func JSONResponse(L *lua.LState) int
- func LoadError(file string, code int) (lua.LValue, error)
- func LoadViewFunction(file string, request http.Request) (lua.LValue, error)
- func Loader(L *lua.LState) int
- func MakeRequestTable(L *lua.LState, request http.Request) lua.LTable
- func Redirect(L *lua.LState) int
- func RenderTemplate(file string, data lua.LTable) string
- func TextResponse(L *lua.LState) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRouter ¶
Create the HTTP router based on the filesystem routes
func FileResponse ¶
func HTMLResponse ¶
func HandleError ¶
func HandleError(err error)
func HandleHTTPError ¶
func JSONResponse ¶
func LoadViewFunction ¶
func TextResponse ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.