Documentation
¶
Index ¶
Constants ¶
View Source
const ResourceOrder_CreateOrderSuccess = "resource.create_order.cmd"
View Source
const ResourceOrder_ReNewOrderSuccess = "resource.renew_order.cmd"
View Source
const ResourceOrder_WithdrawLockedOrderPriceSuccess = "resource.cancel_order.cmd"
Variables ¶
View Source
var GlobalEventBus = newEventBus()
Functions ¶
This section is empty.
Types ¶
type CancelVM ¶
type CancelVM struct {
OrderIndex uint64
// contains filtered or unexported fields
}
func (*CancelVM) AddCompleteCallback ¶
func (e *CancelVM) AddCompleteCallback(callback func())
func (*CancelVM) SetVmManager ¶
type Event ¶
type Event struct {
Tag OperationTag
Data string
}
type EventHandleFunc ¶
type EventHandleFunc func(e string, args interface{})
type EventHandler ¶
type EventHandler struct {
ID string
Handler EventHandleFunc
}
type EventInterface ¶
type EventWriter ¶
type EventWriter struct {
}
type OperationTag ¶
type OperationTag int
const OPCreated OperationTag = 1
const OPDeleted OperationTag = 3
const OPUpdated OperationTag = 2
type RenewVM ¶
type RenewVM struct {
OrderIndex uint64
// contains filtered or unexported fields
}
func (*RenewVM) AddCompleteCallback ¶
func (e *RenewVM) AddCompleteCallback(callback func())
func (*RenewVM) SetVmManager ¶
Click to show internal directories.
Click to hide internal directories.