Documentation ¶
Index ¶
- Variables
- type BranchUndoLog
- type PbBranchUndoLog
- func (*PbBranchUndoLog) Descriptor() ([]byte, []int)deprecated
- func (x *PbBranchUndoLog) GetBranchID() int64
- func (x *PbBranchUndoLog) GetSqlUndoLogs() []*PbSqlUndoLog
- func (x *PbBranchUndoLog) GetXid() string
- func (*PbBranchUndoLog) ProtoMessage()
- func (x *PbBranchUndoLog) ProtoReflect() protoreflect.Message
- func (x *PbBranchUndoLog) Reset()
- func (x *PbBranchUndoLog) String() string
- type PbField
- func (*PbField) Descriptor() ([]byte, []int)deprecated
- func (x *PbField) GetKeyType() int32
- func (x *PbField) GetName() string
- func (x *PbField) GetType() int32
- func (x *PbField) GetValue() []byte
- func (*PbField) ProtoMessage()
- func (x *PbField) ProtoReflect() protoreflect.Message
- func (x *PbField) Reset()
- func (x *PbField) String() string
- type PbRow
- type PbSqlUndoLog
- func (*PbSqlUndoLog) Descriptor() ([]byte, []int)deprecated
- func (x *PbSqlUndoLog) GetAfterImage() *PbTableRecords
- func (x *PbSqlUndoLog) GetBeforeImage() *PbTableRecords
- func (x *PbSqlUndoLog) GetIsBinary() bool
- func (x *PbSqlUndoLog) GetLockKey() string
- func (x *PbSqlUndoLog) GetSchemaName() string
- func (x *PbSqlUndoLog) GetSqlType() int32
- func (x *PbSqlUndoLog) GetTableName() string
- func (*PbSqlUndoLog) ProtoMessage()
- func (x *PbSqlUndoLog) ProtoReflect() protoreflect.Message
- func (x *PbSqlUndoLog) Reset()
- func (x *PbSqlUndoLog) String() string
- type PbTableRecords
- func (*PbTableRecords) Descriptor() ([]byte, []int)deprecated
- func (x *PbTableRecords) GetRows() []*PbRow
- func (x *PbTableRecords) GetTableName() string
- func (*PbTableRecords) ProtoMessage()
- func (x *PbTableRecords) ProtoReflect() protoreflect.Message
- func (x *PbTableRecords) Reset()
- func (x *PbTableRecords) String() string
- type ProtoBufUndoLogParser
- func (parser ProtoBufUndoLogParser) Decode(data []byte) *BranchUndoLog
- func (parser ProtoBufUndoLogParser) DecodeSqlUndoLog(data []byte) *SqlUndoLog
- func (parser ProtoBufUndoLogParser) Encode(branchUndoLog *BranchUndoLog) []byte
- func (parser ProtoBufUndoLogParser) EncodeSqlUndoLog(undoLog *SqlUndoLog) []byte
- func (parser ProtoBufUndoLogParser) GetDefaultContent() []byte
- func (parser ProtoBufUndoLogParser) GetName() string
- type SqlUndoLog
- type UndoLogParser
Constants ¶
This section is empty.
Variables ¶
View Source
var File_table_records_proto protoreflect.FileDescriptor
View Source
var File_undo_log_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type BranchUndoLog ¶
type BranchUndoLog struct { Xid string BranchID int64 SqlUndoLogs []*SqlUndoLog }
type PbBranchUndoLog ¶
type PbBranchUndoLog struct { Xid string `protobuf:"bytes,1,opt,name=Xid,proto3" json:"Xid,omitempty"` BranchID int64 `protobuf:"varint,2,opt,name=BranchID,proto3" json:"BranchID,omitempty"` SqlUndoLogs []*PbSqlUndoLog `protobuf:"bytes,3,rep,name=SqlUndoLogs,proto3" json:"SqlUndoLogs,omitempty"` // contains filtered or unexported fields }
func (*PbBranchUndoLog) Descriptor
deprecated
func (*PbBranchUndoLog) Descriptor() ([]byte, []int)
Deprecated: Use PbBranchUndoLog.ProtoReflect.Descriptor instead.
func (*PbBranchUndoLog) GetBranchID ¶
func (x *PbBranchUndoLog) GetBranchID() int64
func (*PbBranchUndoLog) GetSqlUndoLogs ¶
func (x *PbBranchUndoLog) GetSqlUndoLogs() []*PbSqlUndoLog
func (*PbBranchUndoLog) GetXid ¶
func (x *PbBranchUndoLog) GetXid() string
func (*PbBranchUndoLog) ProtoMessage ¶
func (*PbBranchUndoLog) ProtoMessage()
func (*PbBranchUndoLog) ProtoReflect ¶ added in v0.1.1
func (x *PbBranchUndoLog) ProtoReflect() protoreflect.Message
func (*PbBranchUndoLog) Reset ¶
func (x *PbBranchUndoLog) Reset()
func (*PbBranchUndoLog) String ¶
func (x *PbBranchUndoLog) String() string
type PbField ¶
type PbField struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` KeyType int32 `protobuf:"varint,2,opt,name=KeyType,proto3" json:"KeyType,omitempty"` Type int32 `protobuf:"zigzag32,3,opt,name=Type,proto3" json:"Type,omitempty"` Value []byte `protobuf:"bytes,4,opt,name=Value,proto3" json:"Value,omitempty"` // contains filtered or unexported fields }
func (*PbField) Descriptor
deprecated
func (*PbField) GetKeyType ¶
func (*PbField) ProtoMessage ¶
func (*PbField) ProtoMessage()
func (*PbField) ProtoReflect ¶ added in v0.1.1
func (x *PbField) ProtoReflect() protoreflect.Message
type PbRow ¶
type PbRow struct { Fields []*PbField `protobuf:"bytes,1,rep,name=Fields,proto3" json:"Fields,omitempty"` // contains filtered or unexported fields }
func (*PbRow) Descriptor
deprecated
func (*PbRow) ProtoMessage ¶
func (*PbRow) ProtoMessage()
func (*PbRow) ProtoReflect ¶ added in v0.1.1
func (x *PbRow) ProtoReflect() protoreflect.Message
type PbSqlUndoLog ¶
type PbSqlUndoLog struct { IsBinary bool `protobuf:"varint,1,opt,name=IsBinary,proto3" json:"IsBinary,omitempty"` SqlType int32 `protobuf:"varint,2,opt,name=SqlType,proto3" json:"SqlType,omitempty"` SchemaName string `protobuf:"bytes,3,opt,name=SchemaName,proto3" json:"SchemaName,omitempty"` TableName string `protobuf:"bytes,4,opt,name=TableName,proto3" json:"TableName,omitempty"` LockKey string `protobuf:"bytes,5,opt,name=LockKey,proto3" json:"LockKey,omitempty"` BeforeImage *PbTableRecords `protobuf:"bytes,6,opt,name=BeforeImage,proto3" json:"BeforeImage,omitempty"` AfterImage *PbTableRecords `protobuf:"bytes,7,opt,name=AfterImage,proto3" json:"AfterImage,omitempty"` // contains filtered or unexported fields }
func (*PbSqlUndoLog) Descriptor
deprecated
func (*PbSqlUndoLog) Descriptor() ([]byte, []int)
Deprecated: Use PbSqlUndoLog.ProtoReflect.Descriptor instead.
func (*PbSqlUndoLog) GetAfterImage ¶
func (x *PbSqlUndoLog) GetAfterImage() *PbTableRecords
func (*PbSqlUndoLog) GetBeforeImage ¶
func (x *PbSqlUndoLog) GetBeforeImage() *PbTableRecords
func (*PbSqlUndoLog) GetIsBinary ¶ added in v0.1.1
func (x *PbSqlUndoLog) GetIsBinary() bool
func (*PbSqlUndoLog) GetLockKey ¶
func (x *PbSqlUndoLog) GetLockKey() string
func (*PbSqlUndoLog) GetSchemaName ¶
func (x *PbSqlUndoLog) GetSchemaName() string
func (*PbSqlUndoLog) GetSqlType ¶
func (x *PbSqlUndoLog) GetSqlType() int32
func (*PbSqlUndoLog) GetTableName ¶
func (x *PbSqlUndoLog) GetTableName() string
func (*PbSqlUndoLog) ProtoMessage ¶
func (*PbSqlUndoLog) ProtoMessage()
func (*PbSqlUndoLog) ProtoReflect ¶ added in v0.1.1
func (x *PbSqlUndoLog) ProtoReflect() protoreflect.Message
func (*PbSqlUndoLog) Reset ¶
func (x *PbSqlUndoLog) Reset()
func (*PbSqlUndoLog) String ¶
func (x *PbSqlUndoLog) String() string
type PbTableRecords ¶
type PbTableRecords struct { TableName string `protobuf:"bytes,1,opt,name=TableName,proto3" json:"TableName,omitempty"` Rows []*PbRow `protobuf:"bytes,2,rep,name=Rows,proto3" json:"Rows,omitempty"` // contains filtered or unexported fields }
func (*PbTableRecords) Descriptor
deprecated
func (*PbTableRecords) Descriptor() ([]byte, []int)
Deprecated: Use PbTableRecords.ProtoReflect.Descriptor instead.
func (*PbTableRecords) GetRows ¶
func (x *PbTableRecords) GetRows() []*PbRow
func (*PbTableRecords) GetTableName ¶
func (x *PbTableRecords) GetTableName() string
func (*PbTableRecords) ProtoMessage ¶
func (*PbTableRecords) ProtoMessage()
func (*PbTableRecords) ProtoReflect ¶ added in v0.1.1
func (x *PbTableRecords) ProtoReflect() protoreflect.Message
func (*PbTableRecords) Reset ¶
func (x *PbTableRecords) Reset()
func (*PbTableRecords) String ¶
func (x *PbTableRecords) String() string
type ProtoBufUndoLogParser ¶
type ProtoBufUndoLogParser struct { }
func (ProtoBufUndoLogParser) Decode ¶
func (parser ProtoBufUndoLogParser) Decode(data []byte) *BranchUndoLog
func (ProtoBufUndoLogParser) DecodeSqlUndoLog ¶
func (parser ProtoBufUndoLogParser) DecodeSqlUndoLog(data []byte) *SqlUndoLog
func (ProtoBufUndoLogParser) Encode ¶
func (parser ProtoBufUndoLogParser) Encode(branchUndoLog *BranchUndoLog) []byte
func (ProtoBufUndoLogParser) EncodeSqlUndoLog ¶
func (parser ProtoBufUndoLogParser) EncodeSqlUndoLog(undoLog *SqlUndoLog) []byte
func (ProtoBufUndoLogParser) GetDefaultContent ¶
func (parser ProtoBufUndoLogParser) GetDefaultContent() []byte
func (ProtoBufUndoLogParser) GetName ¶
func (parser ProtoBufUndoLogParser) GetName() string
type SqlUndoLog ¶
type SqlUndoLog struct { // IsBinary binary protocol or text protocol, com_stmt_execute corresponds to // binary protocol (prepared statement), com_query corresponds to text protocol // (text statement). IsBinary bool // SqlType insert、delete、update SqlType constant.SQLType SchemaName string TableName string LockKey string BeforeImage *schema.TableRecords AfterImage *schema.TableRecords }
func (*SqlUndoLog) GetUndoRows ¶
func (undoLog *SqlUndoLog) GetUndoRows() *schema.TableRecords
func (*SqlUndoLog) SetTableMeta ¶
func (undoLog *SqlUndoLog) SetTableMeta(tableMeta schema.TableMeta)
type UndoLogParser ¶
type UndoLogParser interface { GetName() string // return the default content if undo log is empty GetDefaultContent() []byte Encode(branchUndoLog *BranchUndoLog) []byte Decode(data []byte) *BranchUndoLog EncodeSqlUndoLog(undoLog *SqlUndoLog) []byte DecodeSqlUndoLog(data []byte) *SqlUndoLog }
func GetUndoLogParser ¶
func GetUndoLogParser() UndoLogParser
Click to show internal directories.
Click to hide internal directories.