Documentation ¶
Index ¶
Constants ¶
View Source
const ( // LogConfigFile log config file LogConfigFile = "conf/log.ini" // Database Config table init file DBConfigFile = "conf/config.csv" )
View Source
const ( ExitOK int = iota ExitErrLOG ExitErrCFG ExitErrTXT ExitErrTPL ExitErrDB ExitErrTCP ExitErrFSW ExitErrSCH ExitErrHTTP )
Variables ¶
View Source
var ( // Version app version Version string // Revision app revision Revision string // BuildTime app build time BuildTime, _ = time.ParseInLocation("2006-01-02T15:04:05Z", buildTime, time.UTC) )
inject by go build
View Source
var ( // INI global ini INI *ini.Ini // CFG global ini map CFG map[string]map[string]string // Locales supported languages Locales []string // Domain site domain Domain string // Base web context path Base string // WAS web assets filesystem WAS http.FileSystem // XIN global xin engine XIN *xin.Engine // XAL global xin access logger XAL *xmw.AccessLogger // XRL global xin request limiter XRL *xmw.RequestLimiter // XHZ global xin http gziper XHZ *xmw.HTTPGziper // XHD global xin http dumper XHD *xmw.HTTPDumper // XSR global xin https redirector XSR *xmw.HTTPSRedirector // XLL global xin localizer XLL *xmw.Localizer // XTP global xin token protector XTP *xmw.TokenProtector // XRH global xin response header middleware XRH *xmw.ResponseHeader // XAC global xin origin access controller middleware XAC *xmw.OriginAccessController // XCC global xin static cache control setter XCC *xin.CacheControlSetter // XBA global basic auth middleware XBA *xmw.BasicAuth // XCA global cookie auth middleware XCA *xmw.CookieAuth // XCN global cookie auth middleware XCN *xmw.CookieAuth // XHT global xin html templates XHT render.HTMLTemplates // TCP listener dumper TCP *netutil.ListenerDumper // HTTP global http server HTTP *http.Server // GDB gorm database instance GDB *gorm.DB // SDB sqx database instance SDB *sqlx.DB // DBS database settings DBS map[string]string // CONFS tenant config map cache CONFS *imc.Cache // USERS tenant user cache USERS *imc.Cache // AFIPS authenticate failure ip cache AFIPS *imc.Cache )
View Source
var ( // AppConfigFile app config file AppConfigFiles = []string{"conf/app.ini", "conf/env.ini"} )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.