global

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DS string = "/"

DS is separator of directory

Variables

View Source
var APIDIR string = "apis"

APIDIR is path of folder apis

View Source
var CountState int = 0

CountState is count state per second

View Source
var IsCacheWork bool = false

IsCacheWork is enable cache work

View Source
var IsDynamicWork bool = false
View Source
var IsSessionWork bool = false
View Source
var ListProtect []string

ListProtect is list security directory

View Source
var ListTagType []string

ListTagType is list mine type for tag render

View Source
var LoadState int = 0

LoadState is load state

View Source
var MODULEDIR string = "modules"
View Source
var MapCache map[string]*Cache = make(map[string]*Cache)

MapCache is map for Cache

View Source
var MapMimeType map[string]string = make(map[string]string)

MapMimeType is map for mime type data

View Source
var MapModuleFunc map[string]func(rep *Request, params *jsons.JSONObject) string = make(map[string]func(rep *Request, params *jsons.JSONObject) string)
View Source
var MaxRead int = 0

MaxRead is Max MultiPart of body in request

View Source
var MaxSession time.Duration = 30 * time.Minute

MaxSession is Max expire of session

MemCache is memory cache

View Source
var MemoryState int = 0

MemoryState is memory state

View Source
var MutexListProtect sync.RWMutex

MutexListProtect is security directory

View Source
var MutexListTagType sync.RWMutex

MutexListTagType is mine type for tag render

View Source
var MutexMapCache sync.RWMutex

MutexMapCache is mutex lock for MapCache

View Source
var MutexMapMimeType sync.RWMutex

MutexMapMimeType is mutex lock for MapMimeType

View Source
var MutexMapModuleFunc sync.RWMutex
View Source
var MutexMemCache sync.RWMutex

MutexMemCache is mutex lock for MemCache

View Source
var SOCKETDIR string = "sockets"
View Source
var SessionName string = "LETSGO_SESSION_ID"

SessionName is session name

Functions

This section is empty.

Types

type Cache

type Cache struct {
	Header http.Header
	Data   []byte
}

Cache is cache pack data

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

func (*Request) Module added in v0.0.9

func (me *Request) Module(pathModule string, jsoParams *jsons.JSONObject) string

Module is module tag render

func (*Request) ReadFile

func (me *Request) ReadFile(keyname string) (*jsons.JSONObject, []byte, error)

ReadFile is read file from multipart request

Jump to

Keyboard shortcuts

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