repo

package
v0.0.0-...-079c166 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

Storage that contains DB Storage also may contain other DBs, kv-storages

func NewStorage

func NewStorage(db *gorm.DB) *Storage

New Storage instance

func (*Storage) DeleteUser

func (s *Storage) DeleteUser(id string) error

Deleting repository user instance

func (*Storage) GetUser

func (s *Storage) GetUser(id string) (*domain.User, error)

Getting repository user instance

func (*Storage) Login

func (s *Storage) Login(email, password string) (*utils.LoginResponse, error)

Repository Login

func (*Storage) Register

func (s *Storage) Register(username, email, password string) (*domain.User, error)

Repository Registration

func (*Storage) UpdateUser

func (s *Storage) UpdateUser(id, email, username, password string) error

Updating repository user instance

Jump to

Keyboard shortcuts

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