entities

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Claims

type Claims struct {
	jwt.RegisteredClaims
	Name        string `json:"name,omitempty"`
	Orig        string `json:"orig,omitempty"`
	Email       string `json:"email,omitempty"`
	PhoneNumber string `json:"phone_number,omitempty"`
	Version     int    `json:"version,omitempty"`
}

type User

type User struct {
	Authenticated bool

	ID          string
	Name        string
	Email       string
	PhoneNumber string
}

func NewGuestUser

func NewGuestUser() *User

NewGuestUser returns unauthenticated "guest" user

Jump to

Keyboard shortcuts

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