Documentation ¶
Index ¶
- func NewMongoCollection(mdb *persistences.MongoDB, collectionName string, hashing model.Hashing) (model.Repository, error)
- type RepositoryMock
- func (repository *RepositoryMock) Delete(id models.ValueObject[string]) error
- func (repository *RepositoryMock) Save(user *aggregate.User) error
- func (repository *RepositoryMock) Search(filter model.RepositorySearchCriteria) (*aggregate.User, error)
- func (repository *RepositoryMock) Update(user *aggregate.User) error
- type UserCollection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMongoCollection ¶
func NewMongoCollection(mdb *persistences.MongoDB, collectionName string, hashing model.Hashing) (model.Repository, error)
Types ¶
type RepositoryMock ¶
func (*RepositoryMock) Delete ¶
func (repository *RepositoryMock) Delete(id models.ValueObject[string]) error
func (*RepositoryMock) Search ¶
func (repository *RepositoryMock) Search(filter model.RepositorySearchCriteria) (*aggregate.User, error)
type UserCollection ¶
type UserCollection struct {
// contains filtered or unexported fields
}
func (*UserCollection) Delete ¶
func (db *UserCollection) Delete(id models.ValueObject[string]) error
func (*UserCollection) Search ¶
func (db *UserCollection) Search(filter model.RepositorySearchCriteria) (*aggregate.User, error)
Click to show internal directories.
Click to hide internal directories.