event

package
v0.0.0-...-1fef4f5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL