package
Version:
v0.0.0-...-9cde9e9
Opens a new window with list of versions in this module.
Published: May 29, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
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 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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.