Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Conf = &conf{ Addr: ":9090", Err: &errOptions{ Err401: "/err/401.html", Err403: "/err/403.html", Err404: "/err/404.html", Err500: "/err/500.html", }, Api: &apiOptions{ URL: "/apis", }, Asset: &staticOptions{ Enable: false, Ver: "ver=1", URL: "/assets", Dir: "/app/assets", }, Static: &staticOptions{ Enable: false, Ver: "ver=1", URL: "/static", Dir: "static", }, Developer: &staticOptions{ Enable: false, Ver: "ver=1", URL: "/gydev", Dir: "/app/assets/gydev", }, Operation: &staticOptions{ Enable: false, Ver: "ver=1", URL: "/gyopr", Dir: "/app/assets/gyopr", }, Upload: &uploadOptions{ Enable: false, Dir: "/app/assets/gyupl", URL: "/gyupl", MaxSize: 5242880, }, Export: &exportOptions{ Dir: "/app/assets/gydev/export", Del: 600, }, Sensitive: &sensitiveOptions{ Enable: false, Values: []string{}, Excludes: []string{}, }, Html: &htmlOptions{ Enable: false, Dir: "templates", Extensions: []string{"html"}, Reloaded: true, }, Session: &sessionOptions{ Enable: true, Addr: "127.0.0.1:6379", Options: &session.Options{ Path: "/", Domain: "", MaxAge: 30 * 60, Secure: false, HttpOnly: true, }, }, Secure: &secureOptions{ Enable: true, LoginUrl: "/login.html", SuccessUrl: "/home.html", ForbidUrl: "/err/403.html", Filters: []xtype.Map{ {"/**", "anon"}, }, }, Template: &templateOptions{ Enable: true, Dir: "templates", Extensions: []string{"html"}, Funcs: []template.FuncMap{templates.Html.FuncMap}, Delims: templateDelims{ Left: "<%", Right: "%>", }, Reloaded: true, }, }
Conf conf.Conf.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.