controllers

package
v0.0.0-...-9882766 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SignupForm

type SignupForm struct {
	Email    string `schema:"email"`
	Password string `schema:"password"`
}

SignupForm is used to hold the values that is parsed from the web form.

type Users

type Users struct {
	NewView *views.View
}

Users holds all the parameter of a user

func NewUsers

func NewUsers() *Users

NewUsers to prepare and create a new user

func (*Users) Create

func (u *Users) Create(w http.ResponseWriter, r *http.Request)

Create is the method who actually handles the logic to create the user after the submit button have been pressed in the signup page (called by the New method)

func (*Users) New

func (u *Users) New(w http.ResponseWriter, r *http.Request)

New used to render the form for the create user page

Jump to

Keyboard shortcuts

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