model

package
v0.0.0-...-00d00b2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	IDField        = "id"
	TokenField     = "token"
	UserIDField    = "user_id"
	ExpiresInField = "expires_in"
	CreatedAtField = "created_at"
)

Variables

This section is empty.

Functions

func NewCreateMapper

func NewCreateMapper(token int, userID int, expiresIn int64) map[string]interface{}

Types

type Storage

type Storage struct {
	ID        int
	Token     string
	UserID    int
	ExpiresIn int64
	CreatedAt time.Time
}

func NewStorageFromCreateMapper

func NewStorageFromCreateMapper(m map[string]interface{}) (*Storage, error)

Jump to

Keyboard shortcuts

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