Documentation ¶
Index ¶
Constants ¶
View Source
const ( // EventTypeCopMeetLock stands for the CopMeetLock event type. EventTypeCopMeetLock = iota )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CopMeetLock ¶
CopMeetLock represents an event that coprocessor reading encounters lock.
type EventCallback ¶
type EventCallback = func(event TransactionEvent)
EventCallback is the callback type that handles `TransactionEvent`s.
type TransactionEvent ¶
type TransactionEvent struct {
// contains filtered or unexported fields
}
TransactionEvent represents a transaction event that may belong to any of the possible types.
func WrapCopMeetLock ¶
func WrapCopMeetLock(copMeetLock *CopMeetLock) TransactionEvent
WrapCopMeetLock wraps a CopMeetLock event into a TransactionEvent object.
func (TransactionEvent) GetCopMeetLock ¶
func (e TransactionEvent) GetCopMeetLock() *CopMeetLock
GetCopMeetLock tries to extract the inner CopMeetLock event from a TransactionEvent. Returns nil if it's not a CopMeetLock event.
Click to show internal directories.
Click to hide internal directories.