Documentation ¶
Index ¶
- func CheckLogin(w http.ResponseWriter, r *http.Request)
- func Configure(w http.ResponseWriter, r *http.Request)
- func CreateAccount(w http.ResponseWriter, r *http.Request)
- func Dashboard(w http.ResponseWriter, r *http.Request)
- func HandleAccount(w http.ResponseWriter, r *http.Request)
- func Logout(w http.ResponseWriter, r *http.Request)
- func Reports(w http.ResponseWriter, r *http.Request)
- func Root(w http.ResponseWriter, r *http.Request)
- func SaveConfig(w http.ResponseWriter, r *http.Request)
- func SaveTest(w http.ResponseWriter, r *http.Request)
- func Settings(w http.ResponseWriter, r *http.Request)
- func StartTest(w http.ResponseWriter, r *http.Request)
- func TestStarted(w http.ResponseWriter, r *http.Request)
- type ErrorMessage
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