models

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package models defines the different object models used in User

Package models defines the different object models used in User

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextKeyParsedToken var
	ContextKeyParsedToken = contextKey("ParsedToken")
)

Functions

This section is empty.

Types

type ParsedToken added in v0.3.0

type ParsedToken struct {
	Email string
}

ParsedToken contains details that are encoded in the received JWT token

type User

type User struct {
}

User defines the user object

func (User) Validate

func (val User) Validate() error

Validate validates the User and return error if the validation failes Returns error if validation failes

type UserWithCursor

type UserWithCursor struct {
	UserID string
	User   User
	Cursor string
}

UserWithCursor implements the pair of the user with a cursor that determines the location of the tennat in the repository.

Jump to

Keyboard shortcuts

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