controller

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminLoginGET

func AdminLoginGET(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

func AdminLoginPOST

func AdminLoginPOST(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

func AdminPage

func AdminPage(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

func HomePage

func HomePage(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

HomePage is a GET request that validates user credentials and load homepage templates.

func HomePageLoginGet

func HomePageLoginGet(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

HomePageLoginGet loads login page for users to login. Cookies are initially validated if user is already logged in.

func HomePageLoginPost

func HomePageLoginPost(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

func ServeWs

func ServeWs(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

ServeWs handles websocket requests from the peer, ensuring user is registered.

func UploadUser

func UploadUser(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

Types

This section is empty.

Jump to

Keyboard shortcuts

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