models

package
v0.0.0-...-dabf9ce Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 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 JWTClaim

type JWTClaim struct {
	UserId string
	Sub    string
	Exp    jwt.NumericDate
}

func (JWTClaim) GetAudience

func (t JWTClaim) GetAudience() (jwt.ClaimStrings, error)

func (JWTClaim) GetExpirationTime

func (t JWTClaim) GetExpirationTime() (*jwt.NumericDate, error)

func (JWTClaim) GetIssuedAt

func (t JWTClaim) GetIssuedAt() (*jwt.NumericDate, error)

func (JWTClaim) GetIssuer

func (t JWTClaim) GetIssuer() (string, error)

func (JWTClaim) GetNotBefore

func (t JWTClaim) GetNotBefore() (*jwt.NumericDate, error)

func (JWTClaim) GetSubject

func (t JWTClaim) GetSubject() (string, error)

type ShortcutItem

type ShortcutItem struct {
	Id  string `dynamodbav:"id"`
	Url string `dynamodbav:"url"`
}

type UserModel

type UserModel struct {
	Id       primitive.ObjectID `bson:"_id"`
	Username string
	Password string
}

Jump to

Keyboard shortcuts

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