Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
Config *Config
}
App home app
func NewWithDefault ¶
func NewWithDefault() *App
func (App) ConfigureApplication ¶
func (App) ConfigureApplication(application *application.Application)
ConfigureApplication configure application
type Controller ¶
Controller home controller
func (Controller) Index ¶
func (ctrl Controller) Index(w http.ResponseWriter, req *http.Request)
Index home index page
func (Controller) RedirectToAdmin ¶
func (ctrl Controller) RedirectToAdmin(w http.ResponseWriter, req *http.Request)
RedirectToAdmin 重定向到/admin, 暂时屏蔽前端界面
func (Controller) SwitchLocale ¶
func (ctrl Controller) SwitchLocale(w http.ResponseWriter, req *http.Request)
SwitchLocale switch locale
Click to show internal directories.
Click to hide internal directories.