store

package
v0.0.0-...-d125d34 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	Create(ctx context.Context, token *models.Token) (*models.Token, error)
	GetByID(ctx context.Context, id uint) (*models.Token, error)
	GetByCode(ctx context.Context, code string) (*models.Token, error)
	UpdateByID(ctx context.Context, id uint, token *models.Token) error
	DeleteByID(ctx context.Context, id uint) error
	DeleteByCode(ctx context.Context, code string) error
	DeleteByClientID(ctx context.Context, clientID string) error
}

func NewStore

func NewStore(db *gorm.DB) Store

Jump to

Keyboard shortcuts

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