mirror of
https://github.com/astaxie/beego.git
synced 2024-11-26 08:11:29 +00:00
gofmt commented go file
This commit is contained in:
parent
ce332713c4
commit
eb9b958309
80
config.go
80
config.go
@ -14,76 +14,48 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
// beego application
|
BeeApp *App // beego application
|
||||||
BeeApp *App
|
|
||||||
// application configurations
|
|
||||||
AppName string
|
AppName string
|
||||||
AppPath string
|
AppPath string
|
||||||
AppConfigPath string
|
AppConfigPath string
|
||||||
StaticDir map[string]string
|
StaticDir map[string]string
|
||||||
// template caching map
|
TemplateCache map[string]*template.Template // template caching map
|
||||||
TemplateCache map[string]*template.Template
|
StaticExtensionsToGzip []string // files with should be compressed with gzip (.js,.css,etc)
|
||||||
// files with should be compressed with gzip (.js,.css,etc)
|
|
||||||
StaticExtensionsToGzip []string
|
|
||||||
// http server configurations
|
|
||||||
HttpAddr string
|
HttpAddr string
|
||||||
HttpPort int
|
HttpPort int
|
||||||
HttpTLS bool
|
HttpTLS bool
|
||||||
HttpCertFile string
|
HttpCertFile string
|
||||||
HttpKeyFile string
|
HttpKeyFile string
|
||||||
// flag of auto recover panic
|
RecoverPanic bool // flag of auto recover panic
|
||||||
RecoverPanic bool
|
AutoRender bool // flag of render template automatically
|
||||||
// flag of render template automatically
|
|
||||||
AutoRender bool
|
|
||||||
ViewsPath string
|
ViewsPath string
|
||||||
// run mode, "dev" or "prod"
|
RunMode string // run mode, "dev" or "prod"
|
||||||
RunMode string
|
|
||||||
AppConfig config.ConfigContainer
|
AppConfig config.ConfigContainer
|
||||||
// global session mananger
|
GlobalSessions *session.Manager // global session mananger
|
||||||
GlobalSessions *session.Manager
|
SessionOn bool // flag of starting session auto. default is false.
|
||||||
// flag of starting session auto. default is false.
|
SessionProvider string // default session provider, memory, mysql , redis ,etc.
|
||||||
SessionOn bool
|
SessionName string // the cookie name when saving session id into cookie.
|
||||||
// default session provider, memory, mysql , redis ,etc.
|
SessionGCMaxLifetime int64 // session gc time for auto cleaning expired session.
|
||||||
SessionProvider string
|
SessionSavePath string // if use mysql/redis/file provider, define save path to connection info.
|
||||||
// the cookie name when saving session id into cookie.
|
SessionHashFunc string // session hash generation func.
|
||||||
SessionName string
|
SessionHashKey string // session hash salt string.
|
||||||
// session gc time for auto cleaning expired session.
|
SessionCookieLifeTime int // the life time of session id in cookie.
|
||||||
SessionGCMaxLifetime int64
|
|
||||||
// if use mysql/redis/file provider, define save path to connection info.
|
|
||||||
SessionSavePath string
|
|
||||||
// session hash generation func.
|
|
||||||
SessionHashFunc string
|
|
||||||
// session hash salt string.
|
|
||||||
SessionHashKey string
|
|
||||||
// the life time of session id in cookie.
|
|
||||||
SessionCookieLifeTime int
|
|
||||||
UseFcgi bool
|
UseFcgi bool
|
||||||
MaxMemory int64
|
MaxMemory int64
|
||||||
// flag of enable gzip
|
EnableGzip bool // flag of enable gzip
|
||||||
EnableGzip bool
|
DirectoryIndex bool // flag of display directory index. default is false.
|
||||||
// flag of display directory index. default is false.
|
EnableHotUpdate bool // flag of hot update checking by app self. default is false.
|
||||||
DirectoryIndex bool
|
|
||||||
// flag of hot update checking in app self. default is false.
|
|
||||||
EnableHotUpdate bool
|
|
||||||
HttpServerTimeOut int64
|
HttpServerTimeOut int64
|
||||||
// flag of show errors in page. if true, show error and trace info in page rendered with error template.
|
ErrorsShow bool // flag of show errors in page. if true, show error and trace info in page rendered with error template.
|
||||||
ErrorsShow bool
|
XSRFKEY string // xsrf hash salt string.
|
||||||
// xsrf hash salt string.
|
EnableXSRF bool // flag of enable xsrf.
|
||||||
XSRFKEY string
|
XSRFExpire int // the expiry of xsrf value.
|
||||||
// flag of enable xsrf.
|
CopyRequestBody bool // flag of copy raw request body in context.
|
||||||
EnableXSRF bool
|
|
||||||
// the expiry of xsrf value.
|
|
||||||
XSRFExpire int
|
|
||||||
// flag of copy raw request body in context.
|
|
||||||
CopyRequestBody bool
|
|
||||||
TemplateLeft string
|
TemplateLeft string
|
||||||
TemplateRight string
|
TemplateRight string
|
||||||
// beego server name exported in response header.
|
BeegoServerName string // beego server name exported in response header.
|
||||||
BeegoServerName string
|
EnableAdmin bool // flag of enable admin module to log every request info.
|
||||||
// flag of enable admin module to log every request info.
|
AdminHttpAddr string // http server configurations for admin module.
|
||||||
EnableAdmin bool
|
|
||||||
// http server configurations for admin module.
|
|
||||||
AdminHttpAddr string
|
|
||||||
AdminHttpPort int
|
AdminHttpPort int
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user