controller

package
v0.0.0-...-6cd7fa8 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginForm

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

type SignupForm

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

type Static

type Static struct {
	Home    *view.View
	Contact *view.View
}

func NewStaticPage

func NewStaticPage() *Static

type User

type User struct {
	NewView   *view.View
	LoginView *view.View
	// contains filtered or unexported fields
}

func NewUser

func NewUser(us model.UserService) *User

func (*User) CookieTest

func (u *User) CookieTest(w http.ResponseWriter, r *http.Request)

func (*User) Create

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

func (*User) Login

func (u *User) Login(w http.ResponseWriter, r *http.Request)

func (*User) New

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

Jump to

Keyboard shortcuts

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