Documentation ¶
Index ¶
- type Handler
- func (h *Handler) ServeFile(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (h *Handler) ServeIndex(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (h *Handler) ServeJsFile(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (h *Handler) ServeLogin(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (h *Handler) ServeRegister(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler represents handler for every UI routes.
func NewHandler ¶
NewHandler returns new Handler
func (*Handler) ServeFile ¶
func (h *Handler) ServeFile(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
ServeFile serves general UI file
func (*Handler) ServeIndex ¶
func (h *Handler) ServeIndex(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
ServeIndex serves the index page
func (*Handler) ServeJsFile ¶
func (h *Handler) ServeJsFile(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
ServeJsFile serves all JS file
func (*Handler) ServeLogin ¶
func (h *Handler) ServeLogin(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
ServeLogin serves the login page
func (*Handler) ServeRegister ¶ added in v1.0.2
func (h *Handler) ServeRegister(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
ServeRegister serves the register page
Click to show internal directories.
Click to hide internal directories.