Documentation ¶
Index ¶
- type Repository
- func (r *Repository) AddUser(ctx context.Context, name, email, password string) (string, error)
- func (r *Repository) GetUserByEmail(ctx context.Context, email string) (*domain.User, error)
- func (r *Repository) GetUserByID(ctx context.Context, userID string) (*domain.User, error)
- func (r *Repository) GetUserByName(ctx context.Context, name string) (*domain.User, error)
- func (r *Repository) GetUsers(ctx context.Context, skip, limit int) ([]domain.User, error)
- func (r *Repository) GetUsersTotalCount(ctx context.Context) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
func NewRepository ¶
func NewRepository(db *mongo.Mongo) *Repository
func (*Repository) GetUserByEmail ¶
func (*Repository) GetUserByID ¶
func (*Repository) GetUserByName ¶
func (*Repository) GetUsersTotalCount ¶
func (r *Repository) GetUsersTotalCount(ctx context.Context) (int, error)
Click to show internal directories.
Click to hide internal directories.