routes

package
v0.0.0-...-4c5779b Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2016 License: LGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccount

func GetAccount(w http.ResponseWriter, r *http.Request, c *Context) error

func GetRegister

func GetRegister(w http.ResponseWriter, r *http.Request, c *Context) error

func Index

func Index(w http.ResponseWriter, r *http.Request, c *Context) error

func Initialize

func Initialize(root string)

func PostAccount

func PostAccount(w http.ResponseWriter, r *http.Request, c *Context) error

func PostLogin

func PostLogin(w http.ResponseWriter, r *http.Request, c *Context) (err error)

func PostLogout

func PostLogout(w http.ResponseWriter, r *http.Request, c *Context) error

func PostRegister

func PostRegister(w http.ResponseWriter, r *http.Request, c *Context) error

func SetupApplication

func SetupApplication(s *app.ApplicationSettings) chan int

Types

type Context

type Context struct {
	Session           *sessions.Session
	User              string
	DevelopmentMode   bool
	XSRFToken         string
	SessionIdentifier string
}

func NewContext

func NewContext(r *http.Request) (c *Context, err error)

func NewContextFromJson

func NewContextFromJson(r *http.Request) (c *Context, err error)

type Page

type Page struct {
	Title string
}

Jump to

Keyboard shortcuts

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