ui

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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

func NewHandler(db *sqlx.DB, auth *auth.Authenticator) (*Handler, error)

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

Jump to

Keyboard shortcuts

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