Documentation
¶
Index ¶
- type Storage
- func (s *Storage) DeleteUser(id string) error
- func (s *Storage) GetUser(id string) (*domain.User, error)
- func (s *Storage) Login(email, password string) (*utils.LoginResponse, error)
- func (s *Storage) Register(username, email, password string) (*domain.User, error)
- func (s *Storage) UpdateUser(id, email, username, password string) error
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 (*Storage) DeleteUser ¶
Deleting repository user instance
func (*Storage) Login ¶
func (s *Storage) Login(email, password string) (*utils.LoginResponse, error)
Repository Login
func (*Storage) UpdateUser ¶
Updating repository user instance
Click to show internal directories.
Click to hide internal directories.