storage

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserStorage

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

UserStorage - репозиторий пользователей

func New

func New(DBConn string) (*UserStorage, error)

func (*UserStorage) AddUser

func (s *UserStorage) AddUser(ctx context.Context, user models.User) error

func (*UserStorage) Close

func (s *UserStorage) Close()

Close закрывает пул соединений

func (*UserStorage) FindByEmail

func (s *UserStorage) FindByEmail(ctx context.Context, email string) (models.User, error)

Jump to

Keyboard shortcuts

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