ui

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2020 License: MIT Imports: 14 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(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

Jump to

Keyboard shortcuts

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