views

package
v0.0.0-...-c1e9038 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	Email    string `json:"username" db:"email"` //todo: create this table in the database
	Password string `json:"password" db:"password"`
}

Credentials is a struct that models the structure of a user, both in the request body, and in the DB

type User

type User struct {
	Email         string
	Authenticated bool
}

User holds user state information

type UserInfo

type UserInfo struct {
	Username string
	Email    string
	Password string
}

Jump to

Keyboard shortcuts

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