1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-26 18:54:13 +00:00

gofmt commented go file

This commit is contained in:
傅小黑 2013-12-20 23:15:00 +08:00
parent ce332713c4
commit eb9b958309

114
config.go
View File

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