Documentation ¶
Index ¶
- func NewCommandContext(ctx context.Context, db *mongo.Database) commands.CommandContext
- func NewHouseholdRepository(ctx context.Context, db *mongo.Database) repositories.HouseholdRepository
- func NewPersonRepository(ctx context.Context, db *mongo.Database) repositories.PersonRepository
- func NewQueryContext(ctx context.Context, db *mongo.Database) queries.QueryContext
- func NewQueryWorker(mongoDatabase *mongo.Database, useTransaction bool) worker.QueryWorker[queries.QueryContext]
- func NewUnitOfWork(mongoDatabase *mongo.Database, useTransaction bool) worker.UnitOfWork[commands.CommandContext]
- func SearchPerson(ctx context.Context, db *mongo.Database) queries.SearchPerson
- func ViewHouseholdByPerson(ctx context.Context, db *mongo.Database) queries.ViewHouseholdByPerson
- func ViewPerson(ctx context.Context, db *mongo.Database) queries.ViewPerson
- func ViewPersonByEmail(ctx context.Context, db *mongo.Database) queries.ViewPersonByEmail
- type Household
- type HouseholdMember
- type Person
- type PersonHousehold
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommandContext ¶
func NewHouseholdRepository ¶
func NewHouseholdRepository(ctx context.Context, db *mongo.Database) repositories.HouseholdRepository
func NewPersonRepository ¶
func NewPersonRepository(ctx context.Context, db *mongo.Database) repositories.PersonRepository
func NewQueryContext ¶
func NewQueryWorker ¶
func NewQueryWorker(mongoDatabase *mongo.Database, useTransaction bool) worker.QueryWorker[queries.QueryContext]
func NewUnitOfWork ¶
func NewUnitOfWork(mongoDatabase *mongo.Database, useTransaction bool) worker.UnitOfWork[commands.CommandContext]
func SearchPerson ¶
func ViewHouseholdByPerson ¶
func ViewPerson ¶
func ViewPersonByEmail ¶
Types ¶
type Household ¶
type Household struct { ID string `bson:"_id"` Name string `bson:"name"` HouseholdHead HouseholdMember `bson:"householdHead"` PictureUrl string `bson:"pictureUrl"` HouseholdMembers []HouseholdMember `bson:"householdMembers"` }
type HouseholdMember ¶
type Person ¶
type Person struct { ID string `bson:"_id"` FirstName string `bson:"firstName"` MiddleName string `bson:"middleName"` LastName string `bson:"lastName"` ProfilePictureUrl string `bson:"profilePictureUrl"` Address string `bson:"address"` PhoneNumber string `bson:"phoneNumber"` EmailAddress string `bson:"emailAddress"` MaritalStatus string `bson:"maritalStatus"` Birthday *string `bson:"birthday"` Gender string `bson:"gender"` }
type PersonHousehold ¶
Click to show internal directories.
Click to hide internal directories.