package
Version:
v0.0.0-...-85dfee8
Opens a new window with list of versions in this module.
Published: Sep 22, 2021
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type JwtClaims struct {
UserId string `json:"userId"`
Expires string `json:"exp"`
}
JwtClaims struct represents the claims in our JSON Web Tokens
type NewApiKey struct {
ApiKey string `json:"apiKey"`
Message string `json:"msg"`
}
NewApiKey struct represents the server's response to the client after generating a new API Key.
type NewUser struct {
Email string `json:"email"`
}
NewUser struct represents the server's response to a successful user registration
type UserLogin struct {
Email string `json:"email"`
Password string `json:"password"`
}
UserLogin struct represents a user login attempt
type UserRegister struct {
Email string `json:"email"`
Password string `json:"password"`
}
UserRegister struct represents a user registration attempt
Source Files
¶
Click to show internal directories.
Click to hide internal directories.