web

package
v0.0.0-...-026eb1d Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2016 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckLogin

func CheckLogin(w http.ResponseWriter, r *http.Request)

CheckLogin - Validates a login attempt or redirects the user to an error page which redirects them to "Root"

func Configure

func Configure(w http.ResponseWriter, r *http.Request)

Configure - serves the configuration page

func CreateAccount

func CreateAccount(w http.ResponseWriter, r *http.Request)

CreateAccount - Create a new account by comparing both of the passwords entered and then hashing and storing the password

func Dashboard

func Dashboard(w http.ResponseWriter, r *http.Request)

Dashboard - Handles URLs referencing dashboard

func HandleAccount

func HandleAccount(w http.ResponseWriter, r *http.Request)

HandleAccount - Serve the webpage for creating an account

func Logout

func Logout(w http.ResponseWriter, r *http.Request)

Logout - Logs the user out of the system

func Reports

func Reports(w http.ResponseWriter, r *http.Request)

Reports - serves the reports web page

func Root

func Root(w http.ResponseWriter, r *http.Request)

Root - All URLs default to this function

func SaveConfig

func SaveConfig(w http.ResponseWriter, r *http.Request)

SaveConfig - Save the configuration settings and then reload the configuration page (which will automatically reload the new settings)

func SaveTest

func SaveTest(w http.ResponseWriter, r *http.Request)

SaveTest - The test has had it's "test specific settings "

func Settings

func Settings(w http.ResponseWriter, r *http.Request)

Settings - Servers the settings web page

func StartTest

func StartTest(w http.ResponseWriter, r *http.Request)

StartTest - serves the start test web page

func TestStarted

func TestStarted(w http.ResponseWriter, r *http.Request)

TestStarted - A redirection page to notify the user that the test has been started

Types

type ErrorMessage

type ErrorMessage struct {
	Msg string
}

ErrorMessage - contains an error message to display to the user

Jump to

Keyboard shortcuts

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