supertokenrepo

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SuperTokenEntry

type SuperTokenEntry struct {
	ID           uuid.UUID
	ParentID     string `db:"parent_id"`
	RootID       string `db:"root_id"`
	Token        *supertoken.SuperToken
	RefreshToken string `db:"refresh_token"`
	Name         string
	CreatedAt    time.Time `db:"created_at"`
	IP           string    `db:"ip_created"`
	// contains filtered or unexported fields
}

SuperTokenEntry holds the information of a SuperTokenEntry as stored in the database

func NewSuperTokenEntry

func NewSuperTokenEntry(st *supertoken.SuperToken, name string, networkData model.ClientMetaData) *SuperTokenEntry

NewSuperTokenEntry creates a new SuperTokenEntry

func (*SuperTokenEntry) Root

func (ste *SuperTokenEntry) Root() bool

Root checks if this SuperTokenEntry is a root token

func (*SuperTokenEntry) Store

func (ste *SuperTokenEntry) Store(tx *sqlx.Tx, comment string) error

Store stores the SuperTokenEntry in the database

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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