home

package
v0.0.0-...-f5147e6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2019 License: MIT Imports: 7 Imported by: 0

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 New

func New(config *Config) *App

New new home app

func NewWithDefault

func NewWithDefault() *App

func (App) ConfigureApplication

func (App) ConfigureApplication(application *application.Application)

ConfigureApplication configure application

type Config

type Config struct {
}

Config home config struct

type Controller

type Controller struct {
	View *render.Render
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL