persistence

package
v0.0.1-alpha.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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

type RepositoryMock struct {
	mock.Mock
}

func (*RepositoryMock) Delete

func (repository *RepositoryMock) Delete(id models.ValueObject[string]) error

func (*RepositoryMock) Save

func (repository *RepositoryMock) Save(user *aggregate.User) error

func (*RepositoryMock) Search

func (repository *RepositoryMock) Search(filter model.RepositorySearchCriteria) (*aggregate.User, error)

func (*RepositoryMock) Update

func (repository *RepositoryMock) Update(user *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) Save

func (db *UserCollection) Save(user *aggregate.User) error

func (*UserCollection) Search

func (*UserCollection) Update

func (db *UserCollection) Update(user *aggregate.User) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL