model

package
v0.0.0-...-a59a69c Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthReponse

type AuthReponse struct {
	ID        bson.ObjectId `bson:"_id,omitempty" json:"id"`
	Username  string        `json:"username"`
	CSRFToken string        `json:"csrf_token"`
}

type AuthToken

type AuthToken struct {
	ID  bson.ObjectId `bson:"_id,omitempty" json:"id"`
	Jti string        `json:"jti"`
}

type RefreshToken

type RefreshToken struct {
	ID    bson.ObjectId `bson:"_id,omitempty" json:"id"`
	Token string        `json:"token"`
}

type Token

type Token struct {
	AuthToken    string
	RefreshToken string
	CSRFKey      string
}

type TokenClaim

type TokenClaim struct {
	jwt.StandardClaims
	Csrf string `json:"csrf"`
}

type User

type User struct {
	ID        bson.ObjectId `bson:"_id,omitempty" json:"id"`
	FirstName string        `json:"firstname"`
	LastName  string        `json:"lastname"`
	Username  string        `json:"username"`
	Password  string        `json:"password"`
}

Jump to

Keyboard shortcuts

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