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