mongodb

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserStore

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

func NewUserStore

func NewUserStore(uri, dbName string) (*UserStore, error)

func (*UserStore) Close

func (s *UserStore) Close() error

func (*UserStore) Create

func (s *UserStore) Create(ctx context.Context, email, passwordHash string) (*core.User, error)

func (*UserStore) Delete

func (s *UserStore) Delete(ctx context.Context, id string) error

func (*UserStore) GetByEmail

func (s *UserStore) GetByEmail(ctx context.Context, email string) (*core.User, error)

func (*UserStore) GetByID

func (s *UserStore) GetByID(ctx context.Context, id string) (*core.User, error)

func (*UserStore) UpdateEmail

func (s *UserStore) UpdateEmail(ctx context.Context, id, newEmail string) error

func (*UserStore) UpdatePassword

func (s *UserStore) UpdatePassword(ctx context.Context, id, newPasswordHash string) error

Jump to

Keyboard shortcuts

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