Documentation ¶
Index ¶
- func DeleteOneCustomer(ctx context.Context, db *mongo.Database, customerId primitive.ObjectID) (*mongo.DeleteResult, error)
- func DeleteOneOwnedCompany(ctx context.Context, db *mongo.Database, ownerID primitive.ObjectID, ...) (*mongo.UpdateResult, error)
- func DeleteOneOwner(ctx context.Context, db *mongo.Database, ownerID primitive.ObjectID) (*mongo.DeleteResult, error)
- func FindOneCustomer(ctx context.Context, db *mongo.Database, customerID primitive.ObjectID) *mongo.SingleResult
- func FindOneCustomerCredentials(ctx context.Context, db *mongo.Database, mail string) *mongo.SingleResult
- func FindOneOwner(ctx context.Context, db *mongo.Database, ownerID primitive.ObjectID) *mongo.SingleResult
- func FindOneOwnerCredentials(ctx context.Context, db *mongo.Database, mail string) *mongo.SingleResult
- func InsertOneOwnedCompany(ctx context.Context, db *mongo.Database, ownerID primitive.ObjectID, ...) (*mongo.UpdateResult, error)
- type Customer
- type CustomerUpdate
- type Owner
- type OwnerUpdate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteOneCustomer ¶
func DeleteOneOwnedCompany ¶
func DeleteOneOwner ¶
func FindOneCustomer ¶
func FindOneOwner ¶
func FindOneOwnerCredentials ¶
Types ¶
type Customer ¶
type CustomerUpdate ¶
type Owner ¶
Click to show internal directories.
Click to hide internal directories.