models

package
v0.0.0-...-85dfee8 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 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 JwtClaims

type JwtClaims struct {
	UserId  string `json:"userId"`
	Expires string `json:"exp"`
}

JwtClaims struct represents the claims in our JSON Web Tokens

type NewApiKey

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

type NewUser struct {
	Email string `json:"email"`
}

NewUser struct represents the server's response to a successful user registration

type UserLogin

type UserLogin struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

UserLogin struct represents a user login attempt

type UserRegister

type UserRegister struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

UserRegister struct represents a user registration attempt

Jump to

Keyboard shortcuts

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