web

package
v0.0.0-...-0d805c2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	// contains filtered or unexported fields
}

Application is the representation of a server-side web application with HTML templates, and context values used to execute templates.

func NewApplication

func NewApplication() *Application

NewApplication returns a new web application instance.

func (*Application) IndexHandler

func (a *Application) IndexHandler(w http.ResponseWriter, r *http.Request)

IndexHandler is the HTTP handler for index page of the web application.

func (*Application) InviteHandler

func (a *Application) InviteHandler(w http.ResponseWriter, r *http.Request)

InviteHandler is the HTTP handler for Taalbot invite page of the web application.

type Data

type Data map[string]interface{}

Data contains values used to render the HTML templates, and is set on a per-handler basis.

Jump to

Keyboard shortcuts

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