Documentation ¶
Index ¶
- type ProfileRepoMongoDB
- func (p *ProfileRepoMongoDB) GetAllProfiles(ctx context.Context) ([]*domain.UserProfile, error)
- func (p *ProfileRepoMongoDB) GetProfileByID(ctx context.Context, id string) (*domain.UserProfile, error)
- func (p *ProfileRepoMongoDB) GetProfilesByGender(ctx context.Context, gender string) ([]*domain.UserProfile, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProfileRepoMongoDB ¶
type ProfileRepoMongoDB struct {
// contains filtered or unexported fields
}
func NewProfileRepoMongoDB ¶
func NewProfileRepoMongoDB(c *mongo.Collection) *ProfileRepoMongoDB
func (*ProfileRepoMongoDB) GetAllProfiles ¶
func (p *ProfileRepoMongoDB) GetAllProfiles(ctx context.Context) ([]*domain.UserProfile, error)
func (*ProfileRepoMongoDB) GetProfileByID ¶
func (p *ProfileRepoMongoDB) GetProfileByID(ctx context.Context, id string) (*domain.UserProfile, error)
func (*ProfileRepoMongoDB) GetProfilesByGender ¶
func (p *ProfileRepoMongoDB) GetProfilesByGender(ctx context.Context, gender string) ([]*domain.UserProfile, error)
Click to show internal directories.
Click to hide internal directories.