Documentation ¶
Index ¶
- Constants
- Variables
- func DashboardHandler(w http.ResponseWriter, r *http.Request)
- func HandleStatus(w http.ResponseWriter, _ *http.Request)
- func LoginHandler(w http.ResponseWriter, r *http.Request)
- func MethodNotAllowHandler(w http.ResponseWriter, _ *http.Request)
- func NotFoundHandler(w http.ResponseWriter, _ *http.Request)
- type AdminTemplates
- type ResponseData
- type Set
Constants ¶
View Source
const ( NotFoundMsg = `The path you are requesting is not allowed!` MethodNotAllowedMsg = `Your access method is not allowed!` NotAuthorizationMsg = `Your request not authorization! add auth and password to your request header!` )
Variables ¶
View Source
var (
Root *mux.Router
)
Functions ¶
func DashboardHandler ¶
func DashboardHandler(w http.ResponseWriter, r *http.Request)
func HandleStatus ¶
func HandleStatus(w http.ResponseWriter, _ *http.Request)
func LoginHandler ¶
func LoginHandler(w http.ResponseWriter, r *http.Request)
func MethodNotAllowHandler ¶
func MethodNotAllowHandler(w http.ResponseWriter, _ *http.Request)
func NotFoundHandler ¶
func NotFoundHandler(w http.ResponseWriter, _ *http.Request)
Types ¶
type AdminTemplates ¶
AdminTemplates 结构体用于存储所有后台模板
type ResponseData ¶
Click to show internal directories.
Click to hide internal directories.