client

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2015 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorPage

func ErrorPage(e error) string

return error page content

func HomePage

func HomePage(sessionID string, puzzleID string, puzzleIDs []string) string

HomePage executes the home page template over the passed session and puzzle info, and returns the home page content as a string. If there is an error, what's returned is the error page content as a string.

func SolverPage

func SolverPage(sessionID string, puzzleID string, summary *puzzle.Summary) string

SolverPage executes the solver page template over the passed session and puzzle info, and returns the solver page content as a string.

func StaticHandler

func StaticHandler(w http.ResponseWriter, r *http.Request) bool

func VerifyResources

func VerifyResources() error

VerifyResources - check that resources can be found, return error if not.

Types

This section is empty.

Jump to

Keyboard shortcuts

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