models

package
v0.0.0-...-9cde9e9 Latest Latest
Warning

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

Go to latest
Published: May 29, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Claims

type Claims struct {
	UserID uint64 `json:"user_id,omitempty"`
	jwt.StandardClaims
}

Claims defines the JWT claims for the application. These values will be encoded into issued JWT tokens.

type User

type User struct {
	UserID       uint64 `json:"user_id,omitempty"`
	Email        string `json:"email,omitempty"`
	PasswordHash []byte `json:"password_hash,omitempty"`
}

User definition for the application, including a user id, email, password hash, and more.

Jump to

Keyboard shortcuts

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