user_store

package
v0.0.0-...-e0ef36e Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInMemory

func NewInMemory() *inMemoryUserStore

Types

type UserStore

type UserStore struct {
	// contains filtered or unexported fields
}

func NewWithDB

func NewWithDB(db *sqlx.DB) *UserStore

func (*UserStore) AddNewUser

func (u *UserStore) AddNewUser(ctx context.Context, login, passwordHash string) error

func (*UserStore) GetUser

func (u *UserStore) GetUser(ctx context.Context, login string) (domain.User, error)

Jump to

Keyboard shortcuts

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