Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryUserRepository ¶
MemoryUserRepository is an in-memory user repository.
func NewMemoryUserRepository ¶
func NewMemoryUserRepository() *MemoryUserRepository
NewMemoryUserRepository intializes an in-memory user repository.
func (*MemoryUserRepository) Add ¶
func (r *MemoryUserRepository) Add(p *user.User) error
Add stores a new user in the repository.
func (*MemoryUserRepository) GetByEmail ¶
func (r *MemoryUserRepository) GetByEmail(email string) (*user.User, error)
Get retrieves a user by ID.
Click to show internal directories.
Click to hide internal directories.