eb9b9583 by 傅小黑

gofmt commented go file

1 parent ce332713
Showing 1 changed file with 43 additions and 71 deletions
...@@ -14,77 +14,49 @@ import ( ...@@ -14,77 +14,49 @@ import (
14 ) 14 )
15 15
16 var ( 16 var (
17 // beego application 17 BeeApp *App // beego application
18 BeeApp *App 18 AppName string
19 // application configurations 19 AppPath string
20 AppName string 20 AppConfigPath string
21 AppPath string 21 StaticDir map[string]string
22 AppConfigPath string 22 TemplateCache map[string]*template.Template // template caching map
23 StaticDir map[string]string 23 StaticExtensionsToGzip []string // files with should be compressed with gzip (.js,.css,etc)
24 // template caching map 24 HttpAddr string
25 TemplateCache map[string]*template.Template 25 HttpPort int
26 // files with should be compressed with gzip (.js,.css,etc) 26 HttpTLS bool
27 StaticExtensionsToGzip []string 27 HttpCertFile string
28 // http server configurations 28 HttpKeyFile string
29 HttpAddr string 29 RecoverPanic bool // flag of auto recover panic
30 HttpPort int 30 AutoRender bool // flag of render template automatically
31 HttpTLS bool 31 ViewsPath string
32 HttpCertFile string 32 RunMode string // run mode, "dev" or "prod"
33 HttpKeyFile string 33 AppConfig config.ConfigContainer
34 // flag of auto recover panic 34 GlobalSessions *session.Manager // global session mananger
35 RecoverPanic bool 35 SessionOn bool // flag of starting session auto. default is false.
36 // flag of render template automatically 36 SessionProvider string // default session provider, memory, mysql , redis ,etc.
37 AutoRender bool 37 SessionName string // the cookie name when saving session id into cookie.
38 ViewsPath string 38 SessionGCMaxLifetime int64 // session gc time for auto cleaning expired session.
39 // run mode, "dev" or "prod" 39 SessionSavePath string // if use mysql/redis/file provider, define save path to connection info.
40 RunMode string 40 SessionHashFunc string // session hash generation func.
41 AppConfig config.ConfigContainer 41 SessionHashKey string // session hash salt string.
42 // global session mananger 42 SessionCookieLifeTime int // the life time of session id in cookie.
43 GlobalSessions *session.Manager 43 UseFcgi bool
44 // flag of starting session auto. default is false. 44 MaxMemory int64
45 SessionOn bool 45 EnableGzip bool // flag of enable gzip
46 // default session provider, memory, mysql , redis ,etc. 46 DirectoryIndex bool // flag of display directory index. default is false.
47 SessionProvider string 47 EnableHotUpdate bool // flag of hot update checking by app self. default is false.
48 // the cookie name when saving session id into cookie. 48 HttpServerTimeOut int64
49 SessionName string 49 ErrorsShow bool // flag of show errors in page. if true, show error and trace info in page rendered with error template.
50 // session gc time for auto cleaning expired session. 50 XSRFKEY string // xsrf hash salt string.
51 SessionGCMaxLifetime int64 51 EnableXSRF bool // flag of enable xsrf.
52 // if use mysql/redis/file provider, define save path to connection info. 52 XSRFExpire int // the expiry of xsrf value.
53 SessionSavePath string 53 CopyRequestBody bool // flag of copy raw request body in context.
54 // session hash generation func. 54 TemplateLeft string
55 SessionHashFunc string 55 TemplateRight string
56 // session hash salt string. 56 BeegoServerName string // beego server name exported in response header.
57 SessionHashKey string 57 EnableAdmin bool // flag of enable admin module to log every request info.
58 // the life time of session id in cookie. 58 AdminHttpAddr string // http server configurations for admin module.
59 SessionCookieLifeTime int 59 AdminHttpPort int
60 UseFcgi bool
61 MaxMemory int64
62 // flag of enable gzip
63 EnableGzip bool
64 // flag of display directory index. default is false.
65 DirectoryIndex bool
66 // flag of hot update checking in app self. default is false.
67 EnableHotUpdate bool
68 HttpServerTimeOut int64
69 // flag of show errors in page. if true, show error and trace info in page rendered with error template.
70 ErrorsShow bool
71 // xsrf hash salt string.
72 XSRFKEY string
73 // flag of enable xsrf.
74 EnableXSRF bool
75 // the expiry of xsrf value.
76 XSRFExpire int
77 // flag of copy raw request body in context.
78 CopyRequestBody bool
79 TemplateLeft string
80 TemplateRight string
81 // beego server name exported in response header.
82 BeegoServerName string
83 // flag of enable admin module to log every request info.
84 EnableAdmin bool
85 // http server configurations for admin module.
86 AdminHttpAddr string
87 AdminHttpPort int
88 ) 60 )
89 61
90 func init() { 62 func init() {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!