gorm

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(db *gorm.DB) storer.Solgate

Types

type TokenStorer

type TokenStorer struct {
	DB *gorm.DB
}

func (TokenStorer) Create

func (t TokenStorer) Create(token types.Token) (*types.Token, error)

func (TokenStorer) Delete

func (t TokenStorer) Delete(id string) error

func (TokenStorer) FindByID

func (t TokenStorer) FindByID(id string) (*types.Token, error)

func (TokenStorer) FindByToken added in v0.0.13

func (t TokenStorer) FindByToken(tkn string) (*types.Token, error)

Jump to

Keyboard shortcuts

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