Documentation
¶
Index ¶
- type Database
- func (db *Database) CreateIndexes() error
- func (db *Database) DoDelivery(ctx context.Context, wId int, oCarrierId int, olDeliveryD time.Time, dId int) error
- func (db *Database) DoNewOrder(ctx context.Context, w_id int, d_id int, c_id int, o_entry_d time.Time, ...) error
- func (db *Database) DoOrderStatus(ctx context.Context, wId int, dId int, cId int, cLast string) error
- func (db *Database) DoPayment(ctx context.Context, wId int, dId int, hAmount float64, cWId int, cDId int, ...) error
- func (db *Database) DoStockLevelTrx(ctx context.Context, wId int, dId int, threshold int) error
- func (db *Database) DoTrxRetries(fn func(ctx context.Context) error, retries int) error
- func (db *Database) InsertBatch(collectionName string, d []interface{}) error
- func (db *Database) InsertOne(collectionName string, d interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct { Client *mongo.Client C *mongo.Database Aggregate bool // contains filtered or unexported fields }
func (*Database) CreateIndexes ¶
func (*Database) DoDelivery ¶
func (*Database) DoNewOrder ¶
func (*Database) DoOrderStatus ¶
func (*Database) DoStockLevelTrx ¶
func (*Database) DoTrxRetries ¶
func (*Database) InsertBatch ¶
Click to show internal directories.
Click to hide internal directories.