Documentation
¶
Index ¶
- Constants
- type Executor
- func (e *Executor) ChangeBatchSize(batchSize int)
- func (e *Executor) ChangeRetries(r int)
- func (e *Executor) CreateIndexes() error
- func (e *Executor) DoDelivery(wId int, oCarrierId int, olDeliveryD time.Time, dId int) error
- func (e *Executor) DoDeliveryTrx(wId int, oCarrierId int, olDeliveryD time.Time, dId int) error
- func (e *Executor) DoNewOrder(wId, dId, cId int, oEntryD time.Time, iIds []int, iWids []int, iQtys []int) error
- func (e *Executor) DoNewOrderTrx(wId, dId, cId int, oEntryD time.Time, iIds []int, iWids []int, iQtys []int) error
- func (e *Executor) DoOrderStatus(warehouseId, districtId, cId int, cLast string) error
- func (e *Executor) DoOrderStatusTrx(warehouseId, districtId, cId int, cLast string) error
- func (e *Executor) DoPayment(warehouseId, districtId int, amount float64, cWId, cDId, cId int, cLast string, ...) error
- func (e *Executor) DoPaymentTrx(warehouseId, districtId int, amount float64, cWId, cDId, cId int, cLast string, ...) error
- func (e *Executor) DoStockLevelTrx(warehouseId int, districtId int, threshold int) error
- func (e *Executor) DoTrxRetries(fn func() error) error
- func (e *Executor) Flush(collectionName string)
- func (e *Executor) Save(collectionName string, d interface{})
- func (e *Executor) SaveBatch(collectionName string, d interface{})
Constants ¶
View Source
const DefaultRetries = 10
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func (*Executor) ChangeBatchSize ¶
func (*Executor) ChangeRetries ¶
func (*Executor) CreateIndexes ¶
func (*Executor) DoDelivery ¶
todo the order of arguments here is weird also the dId passed from the worker is probably utterly wrong
func (*Executor) DoDeliveryTrx ¶ added in v0.0.2
func (*Executor) DoNewOrder ¶
func (*Executor) DoNewOrderTrx ¶ added in v0.0.2
func (*Executor) DoOrderStatus ¶
func (*Executor) DoOrderStatusTrx ¶ added in v0.0.2
func (*Executor) DoPaymentTrx ¶ added in v0.0.2
func (*Executor) DoStockLevelTrx ¶
func (*Executor) DoTrxRetries ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.