Documentation
¶
Index ¶
Constants ¶
const DS string = "/"
DS is separator of directory
Variables ¶
var APIDIR string = "apis"
APIDIR is path of folder apis
var CountState int = 0
CountState is count state per second
var IsCacheWork bool = false
IsCacheWork is enable cache work
var IsDynamicWork bool = false
var IsSessionWork bool = false
var ListProtect []string
ListProtect is list security directory
var ListTagType []string
ListTagType is list mine type for tag render
var LoadState int = 0
LoadState is load state
var MODULEDIR string = "modules"
MapCache is map for Cache
MapMimeType is map for mime type data
var MapModuleFunc map[string]func(rep *Request, params *jsons.JSONObject) string = make(map[string]func(rep *Request, params *jsons.JSONObject) string)
var MaxRead int = 0
MaxRead is Max MultiPart of body in request
var MaxSession time.Duration = 30 * time.Minute
MaxSession is Max expire of session
var MemCache *jsons.JSONObject = jsons.JSONObjectFactory()
MemCache is memory cache
var MemoryState int = 0
MemoryState is memory state
var MutexListProtect sync.RWMutex
MutexListProtect is security directory
var MutexListTagType sync.RWMutex
MutexListTagType is mine type for tag render
var MutexMapCache sync.RWMutex
MutexMapCache is mutex lock for MapCache
var MutexMapMimeType sync.RWMutex
MutexMapMimeType is mutex lock for MapMimeType
var MutexMapModuleFunc sync.RWMutex
var MutexMemCache sync.RWMutex
MutexMemCache is mutex lock for MemCache
var SOCKETDIR string = "sockets"
var SessionName string = "LETSGO_SESSION_ID"
SessionName is session name
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct { Path string SessionID string SESSION *jsons.JSONObject GET *jsons.JSONObject POST *jsons.JSONObject FILE *jsons.JSONArray Response http.ResponseWriter Request *http.Request }
Request is header pack data