pages

package
v0.0.0-...-75ff7da Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfirmEmail

type ConfirmEmail struct{}

func (ConfirmEmail) Process

func (i ConfirmEmail) Process(c *Context, w http.ResponseWriter, r *http.Request)

type Context

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

func NewContext

func NewContext(db *db.Database, cj *sutil.CookieJar, mailer *util.Mailer,
	w http.ResponseWriter, r *http.Request) *Context

func (*Context) Authenticate

func (c *Context) Authenticate()

func (*Context) Redirect

func (c *Context) Redirect(path string, status int)

func (*Context) SendConfirmationEmail

func (c *Context) SendConfirmationEmail(email string) error

type Index

type Index struct{}

func (Index) Process

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

type Login

type Login struct{}

func (Login) Process

func (i Login) Process(c *Context, w http.ResponseWriter, r *http.Request)

type LoginForm

type LoginForm struct {
	Password string
	// contains filtered or unexported fields
}

type Logout

type Logout struct{}

func (Logout) Process

func (i Logout) Process(c *Context, w http.ResponseWriter, r *http.Request)

type Processor

type Processor interface {
	Process(c *Context, w http.ResponseWriter, r *http.Request)
}

type SignUp

type SignUp struct{}

func (SignUp) Process

func (i SignUp) Process(c *Context, w http.ResponseWriter, r *http.Request)

type SignUpForm

type SignUpForm struct {
	User     string
	Email    string
	Password string
}

Jump to

Keyboard shortcuts

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