Documentation ¶
Index ¶
- Constants
- type EventManager
- type GlobalTransactionEvent
- func (event GlobalTransactionEvent) GetBeginTime() int64
- func (event GlobalTransactionEvent) GetEndTime() int64
- func (event GlobalTransactionEvent) GetID() int64
- func (event GlobalTransactionEvent) GetName() string
- func (event GlobalTransactionEvent) GetRole() string
- func (event GlobalTransactionEvent) GetStatus() meta.GlobalStatus
Constants ¶
View Source
const ( RoleTC = "tc" RoleTM = "tm" RoleRM = "rm" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventManager ¶
type EventManager struct {
GlobalTransactionEventChannel chan GlobalTransactionEvent
}
var EventBus EventManager
type GlobalTransactionEvent ¶
type GlobalTransactionEvent struct {
// contains filtered or unexported fields
}
func NewGlobalTransactionEvent ¶
func NewGlobalTransactionEvent(id int64, role string, name string, beginTime int64, endTime int64, status meta.GlobalStatus) GlobalTransactionEvent
func (GlobalTransactionEvent) GetBeginTime ¶
func (event GlobalTransactionEvent) GetBeginTime() int64
func (GlobalTransactionEvent) GetEndTime ¶
func (event GlobalTransactionEvent) GetEndTime() int64
func (GlobalTransactionEvent) GetID ¶ added in v0.2.0
func (event GlobalTransactionEvent) GetID() int64
func (GlobalTransactionEvent) GetName ¶
func (event GlobalTransactionEvent) GetName() string
func (GlobalTransactionEvent) GetRole ¶
func (event GlobalTransactionEvent) GetRole() string
func (GlobalTransactionEvent) GetStatus ¶
func (event GlobalTransactionEvent) GetStatus() meta.GlobalStatus
Click to show internal directories.
Click to hide internal directories.