stores

package
v0.0.0-...-51ca83e Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StockStore

type StockStore interface {
	Get(ctx context.Context) error
}

type UserStore

type UserStore interface {
	Create(ctx context.Context, user *models.User) error
	SetPassword(ctx context.Context, passwordHash string, userId xid.ID) error
	GetByEmail(ctx context.Context, email string, dst *models.User) error
	List(ctx context.Context, set func(*models.User) error) error
	Get(ctx context.Context, userId xid.ID, dst *models.User) error
	Put(ctx context.Context, user *models.User) error
	Delete(ctx context.Context, userId xid.ID) error
}

Jump to

Keyboard shortcuts

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