Documentation ¶
Index ¶
- func NewAuthRepo(db *mongo.Database) auth.Repository
- type AuthRepo
- func (r *AuthRepo) AddMonster(ctx context.Context, userID, monsterID primitive.ObjectID) error
- func (r *AuthRepo) CreateUser(ctx context.Context, user *domain.User) (*domain.User, error)
- func (r *AuthRepo) DeleteUser(ctx context.Context, userID primitive.ObjectID) error
- func (r *AuthRepo) FetchUsers(ctx context.Context, pq *utils.PaginationQuery) (*domain.UserList, error)
- func (r *AuthRepo) FindByID(ctx context.Context, userID primitive.ObjectID) (*domain.User, error)
- func (r *AuthRepo) FindByUsername(ctx context.Context, username string) (*domain.User, error)
- func (r *AuthRepo) UpdateUser(ctx context.Context, user *domain.UserUpdate) (*domain.UserUpdate, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthRepo ¶
func NewAuthRepo(db *mongo.Database) auth.Repository
Types ¶
type AuthRepo ¶
type AuthRepo struct {
// contains filtered or unexported fields
}
func (*AuthRepo) AddMonster ¶
func (*AuthRepo) CreateUser ¶
func (*AuthRepo) DeleteUser ¶
func (*AuthRepo) FetchUsers ¶
func (*AuthRepo) FindByUsername ¶
func (*AuthRepo) UpdateUser ¶
func (r *AuthRepo) UpdateUser(ctx context.Context, user *domain.UserUpdate) (*domain.UserUpdate, error)
Click to show internal directories.
Click to hide internal directories.