Documentation ¶
Index ¶
- Constants
- Variables
- func Context(L *lua.LState, c echo.Context)
- func LContext_Blob(L *lua.LState) int
- func LContext_Error(L *lua.LState) int
- func LContext_FormFile(L *lua.LState) int
- func LContext_FormValue(L *lua.LState) int
- func LContext_GetCookie(L *lua.LState) int
- func LContext_GetCookies(L *lua.LState) int
- func LContext_HTML(L *lua.LState) int
- func LContext_Host(L *lua.LState) int
- func LContext_HttpError(L *lua.LState) int
- func LContext_IsTLS(L *lua.LState) int
- func LContext_Json(L *lua.LState) int
- func LContext_Jsonp(L *lua.LState) int
- func LContext_Method(L *lua.LState) int
- func LContext_MultipartForm(L *lua.LState) int
- func LContext_NewFromUD(L *lua.LState) int
- func LContext_NewUD(L *lua.LState, gs echo.Context) *lua.LUserData
- func LContext_NoContent(L *lua.LState) int
- func LContext_Param(L *lua.LState) int
- func LContext_RealIP(L *lua.LState) int
- func LContext_Request(L *lua.LState) int
- func LContext_Response(L *lua.LState) int
- func LContext_Scheme(L *lua.LState) int
- func LContext_String(L *lua.LState) int
- func LCookie_Domain(L *lua.LState) int
- func LCookie_Expires(L *lua.LState) int
- func LCookie_HttpOnly(L *lua.LState) int
- func LCookie_MaxAge(L *lua.LState) int
- func LCookie_Name(L *lua.LState) int
- func LCookie_NewUD(L *lua.LState, gs *http.Cookie) *lua.LUserData
- func LCookie_Path(L *lua.LState) int
- func LCookie_Secure(L *lua.LState) int
- func LCookie_Table(L *lua.LState) int
- func LCookie_Value(L *lua.LState) int
- func LFormFile_Close(L *lua.LState) int
- func LFormFile_FileName(L *lua.LState) int
- func LFormFile_NewUD(L *lua.LState, gs *multipart.FileHeader) *lua.LUserData
- func LFormFile_Read(L *lua.LState) int
- func LFormFile_ReadAt(L *lua.LState) int
- func LFormFile_Seek(L *lua.LState) int
- func LFormFile_Size(L *lua.LState) int
- func LMultipartForm_Files(L *lua.LState) int
- func LMultipartForm_NewUD(L *lua.LState, gs *multipart.Form) *lua.LUserData
- func LMultipartForm_RemoveAll(L *lua.LState) int
- func LRequest_CloseBody(L *lua.LState) int
- func LRequest_DelHeader(L *lua.LState) int
- func LRequest_GetHeader(L *lua.LState) int
- func LRequest_Host(L *lua.LState) int
- func LRequest_Method(L *lua.LState) int
- func LRequest_NewUD(L *lua.LState, gs *http.Request) *lua.LUserData
- func LRequest_ReadBody(L *lua.LState) int
- func LRequest_RemoteAddr(L *lua.LState) int
- func LRequest_SetHeader(L *lua.LState) int
- func LRequest_URI(L *lua.LState) int
- func LRequest_URL(L *lua.LState) int
- func LRequest_UserAgent(L *lua.LState) int
- func LResponse_Committed(L *lua.LState) int
- func LResponse_DelHeader(L *lua.LState) int
- func LResponse_Flush(L *lua.LState) int
- func LResponse_GetHeader(L *lua.LState) int
- func LResponse_NewUD(L *lua.LState, gs *echo.Response) *lua.LUserData
- func LResponse_SetHeader(L *lua.LState) int
- func LResponse_Size(L *lua.LState) int
- func LResponse_Status(L *lua.LState) int
- func LResponse_Write(L *lua.LState) int
- func LResponse_WriteHeader(L *lua.LState) int
- func LUrl_DelParam(L *lua.LState) int
- func LUrl_EscapedPath(L *lua.LState) int
- func LUrl_Fragment(L *lua.LState) int
- func LUrl_Host(L *lua.LState) int
- func LUrl_IsAbs(L *lua.LState) int
- func LUrl_New(L *lua.LState) int
- func LUrl_NewUD(L *lua.LState, gs *purl.URL) *lua.LUserData
- func LUrl_Opaque(L *lua.LState) int
- func LUrl_Param(L *lua.LState) int
- func LUrl_Password(L *lua.LState) int
- func LUrl_Path(L *lua.LState) int
- func LUrl_Query(L *lua.LState) int
- func LUrl_Scheme(L *lua.LState) int
- func LUrl_SetParam(L *lua.LState) int
- func LUrl_Username(L *lua.LState) int
- func Loader(L *lua.LState) int
- func Logger(L *lua.LState, jl zerolog.Logger)
- func Variables(L *lua.LState, vars map[string]string)
- type LFormFile
Constants ¶
View Source
const (
LOGGER_TYPE = "logger{api}"
)
Variables ¶
View Source
var API = map[string]lua.LGFunction{ "newFromUD": LContext_NewFromUD, }
View Source
var API_LContext = map[string]lua.LGFunction{ "is_tls": LContext_IsTLS, "error": LContext_HttpError, "no_content": LContext_NoContent, "string": LContext_String, "html": LContext_HTML, "blob": LContext_Blob, "json": LContext_Json, "jsonp": LContext_Jsonp, "scheme": LContext_Scheme, "host": LContext_Host, "method": LContext_Method, "param": LContext_Param, "form_file": LContext_FormFile, "form_value": LContext_FormValue, "multipart_form": LContext_MultipartForm, "get_cookie": LContext_GetCookie, "get_cookies": LContext_GetCookies, "response": LContext_Response, "request": LContext_Request, "real_ip": LContext_RealIP, }
View Source
var API_LCookie = map[string]lua.LGFunction{ "table": LCookie_Table, "domain": LCookie_Domain, "secure": LCookie_Secure, "httponly": LCookie_HttpOnly, "path": LCookie_Path, "expires": LCookie_Expires, "value": LCookie_Value, "name": LCookie_Name, }
View Source
var API_LFormFile = map[string]lua.LGFunction{ "read": LFormFile_Read, "size": LFormFile_Size, "filename": LFormFile_FileName, }
View Source
var API_LMultipartForm = map[string]lua.LGFunction{ "files": LMultipartForm_Files, "remove_all": LMultipartForm_RemoveAll, }
View Source
var API_LRequest = map[string]lua.LGFunction{ "read_body": LRequest_ReadBody, "close_body": LRequest_CloseBody, "host": LRequest_Host, "method": LRequest_Method, "url": LRequest_URL, "uri": LRequest_URI, "remoteaddr": LRequest_RemoteAddr, "get_header": LRequest_GetHeader, "useragent": LRequest_UserAgent, }
View Source
var API_LResponse = map[string]lua.LGFunction{ "set_header": LResponse_SetHeader, "get_header": LResponse_GetHeader, "del_header": LResponse_DelHeader, "write_header": LResponse_WriteHeader, "write": LResponse_Write, "flush": LResponse_Flush, "committed": LResponse_Committed, "size": LResponse_Size, "status": LResponse_Status, }
View Source
var API_LUrl = map[string]lua.LGFunction{ "scheme": LUrl_Scheme, "host": LUrl_Host, "is_abs": LUrl_IsAbs, "path": LUrl_Path, "query": LUrl_Query, "username": LUrl_Username, "password": LUrl_Password, "param": LUrl_Param, "nopaque": LUrl_Opaque, }
View Source
var LNAME string = "echo"
View Source
var VERSION string = "1.0.0"
Functions ¶
func LContext_Blob ¶
func LContext_Error ¶
func LContext_FormFile ¶
func LContext_FormValue ¶
func LContext_GetCookie ¶
func LContext_GetCookies ¶
func LContext_HTML ¶
func LContext_Host ¶
func LContext_IsTLS ¶
func LContext_Json ¶
func LContext_Jsonp ¶
func LContext_Method ¶
func LContext_MultipartForm ¶
func LContext_NewFromUD ¶
func LContext_NoContent ¶
func LContext_Param ¶
func LContext_RealIP ¶
func LContext_Request ¶
func LContext_Response ¶
func LContext_Scheme ¶
func LContext_String ¶
func LCookie_Domain ¶
func LCookie_Expires ¶
func LCookie_HttpOnly ¶
func LCookie_MaxAge ¶
func LCookie_Name ¶
func LCookie_Path ¶
func LCookie_Secure ¶
func LCookie_Table ¶
func LCookie_Value ¶
func LFormFile_Close ¶
func LFormFile_FileName ¶
func LFormFile_NewUD ¶
func LFormFile_Read ¶
func LFormFile_ReadAt ¶
func LFormFile_Seek ¶
func LFormFile_Size ¶
func LMultipartForm_Files ¶
func LMultipartForm_NewUD ¶
func LRequest_CloseBody ¶
func LRequest_DelHeader ¶
func LRequest_GetHeader ¶
func LRequest_Host ¶
func LRequest_Method ¶
func LRequest_ReadBody ¶
func LRequest_RemoteAddr ¶
func LRequest_SetHeader ¶
func LRequest_URI ¶
func LRequest_URL ¶
func LRequest_UserAgent ¶
func LResponse_Committed ¶
func LResponse_DelHeader ¶
func LResponse_Flush ¶
func LResponse_GetHeader ¶
func LResponse_SetHeader ¶
func LResponse_Size ¶
func LResponse_Status ¶
func LResponse_Write ¶
func LResponse_WriteHeader ¶
func LUrl_DelParam ¶
func LUrl_EscapedPath ¶
func LUrl_Fragment ¶
func LUrl_IsAbs ¶
func LUrl_Opaque ¶
func LUrl_Param ¶
func LUrl_Password ¶
func LUrl_Query ¶
func LUrl_Scheme ¶
func LUrl_SetParam ¶
func LUrl_Username ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.