userstorage

package
v0.0.0-...-47bc475 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserStore

func NewUserStore() (*userStore, error)

Types

type UserStore

type UserStore interface {
	// Table operations
	CreateTable() error

	// User operations
	CreateUser(email string, password string, salt []byte, name string) error
	UpdateUser(id int, email string, name string) error
	DeleteUser(id int) error
	GetUser(id int) (usermodel.User, error)
	GetUserByEmail(email string) (usermodel.User, error)
}

Jump to

Keyboard shortcuts

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