models

package
v0.0.0-...-6dd8d72 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomClaims

type CustomClaims struct {
	TokenVersion int64 `json:"tokenVersion"`
	jwt.StandardClaims
}

type User

type User struct {
	ID                primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	Email             string             `json:"email,omitempty" bson:"email,omitempty"`
	GoogleAccessToken string             `json:"googleAccessToken,omitempty" bson:"googleAccessToken,omitempty"`
	Image             string             `json:"image,omitempty" bson:"image,omitempty"`
	Roles             []string           `json:"roles,omitempty" bson:"roles,omitempty"`
	Created           time.Time          `json:"created,omitempty" bson:"created,omitempty"`
	Updated           time.Time          `json:"updated,omitempty" bson:"updated,omitempty"`
}

Jump to

Keyboard shortcuts

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