trxevents

package
v1.1.0-beta.0...-f2db9c4 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

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

type CopMeetLock struct {
	LockInfo *kvrpcpb.LockInfo
}

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 EventType

type EventType = int

EventType represents the type of a transaction event.

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.

Jump to

Keyboard shortcuts

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