Documentation ¶
Index ¶
- func NewClient(app *configx.Application) (*mongo.Client, error)
- func NewClientWithClean(app *configx.Application) (*mongo.Client, func(), error)
- func NewClientWithDSN(dsn string) (*mongo.Client, error)
- func NewDeliveryRepo(rw *mongo.Client) repo.IDeliveryRepo
- func NewNotificationRepo(rw *mongo.Client) repo.INotificationRepo
- func NewPaymentRepo(rw *mongo.Client) repo.IPaymentRepo
- func NewRestaurantRepo(rw *mongo.Client) repo.IRestaurantRepo
- type Container
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(app *configx.Application) (*mongo.Client, error)
NewClient returns a new mongo client.
func NewClientWithClean ¶
func NewClientWithClean(app *configx.Application) (*mongo.Client, func(), error)
NewClientWithClean returns a new mongo client with clean.
func NewClientWithDSN ¶
NewClientWithDSN returns a new mongo client with dsn.
func NewDeliveryRepo ¶
func NewDeliveryRepo(rw *mongo.Client) repo.IDeliveryRepo
NewDeliveryRepo will create a new delivery repository.
func NewNotificationRepo ¶
func NewNotificationRepo(rw *mongo.Client) repo.INotificationRepo
NewNotificationRepo is to create a new mongodbNotificationRepo.
func NewPaymentRepo ¶
func NewPaymentRepo(rw *mongo.Client) repo.IPaymentRepo
NewPaymentRepo is to create a new mongodbPaymentRepo.
func NewRestaurantRepo ¶
func NewRestaurantRepo(rw *mongo.Client) repo.IRestaurantRepo
NewRestaurantRepo is to create a new mongodbRestaurantRepo.
Types ¶
type Container ¶
type Container struct {
*mongodb.MongoDBContainer
}
Container is used to represent a mongodb container.
func NewContainer ¶
NewContainer returns a new mongodb container.
Click to show internal directories.
Click to hide internal directories.