Documentation ¶
Index ¶
- type MysqlFieldValueType
- type PbBranchUndoLog
- func (*PbBranchUndoLog) Descriptor() ([]byte, []int)
- func (m *PbBranchUndoLog) GetBranchID() int64
- func (m *PbBranchUndoLog) GetSqlUndoLogs() []*PbSqlUndoLog
- func (m *PbBranchUndoLog) GetXid() string
- func (*PbBranchUndoLog) ProtoMessage()
- func (m *PbBranchUndoLog) Reset()
- func (m *PbBranchUndoLog) String() string
- func (m *PbBranchUndoLog) XXX_DiscardUnknown()
- func (m *PbBranchUndoLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PbBranchUndoLog) XXX_Merge(src proto.Message)
- func (m *PbBranchUndoLog) XXX_Size() int
- func (m *PbBranchUndoLog) XXX_Unmarshal(b []byte) error
- type PbField
- func (*PbField) Descriptor() ([]byte, []int)
- func (m *PbField) GetKeyType() int32
- func (m *PbField) GetName() string
- func (m *PbField) GetType() int32
- func (m *PbField) GetValue() []byte
- func (*PbField) ProtoMessage()
- func (m *PbField) Reset()
- func (m *PbField) String() string
- func (m *PbField) XXX_DiscardUnknown()
- func (m *PbField) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PbField) XXX_Merge(src proto.Message)
- func (m *PbField) XXX_Size() int
- func (m *PbField) XXX_Unmarshal(b []byte) error
- type PbRow
- func (*PbRow) Descriptor() ([]byte, []int)
- func (m *PbRow) GetFields() []*PbField
- func (*PbRow) ProtoMessage()
- func (m *PbRow) Reset()
- func (m *PbRow) String() string
- func (m *PbRow) XXX_DiscardUnknown()
- func (m *PbRow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PbRow) XXX_Merge(src proto.Message)
- func (m *PbRow) XXX_Size() int
- func (m *PbRow) XXX_Unmarshal(b []byte) error
- type PbSqlUndoLog
- func (*PbSqlUndoLog) Descriptor() ([]byte, []int)
- func (m *PbSqlUndoLog) GetAfterImage() *PbTableRecords
- func (m *PbSqlUndoLog) GetBeforeImage() *PbTableRecords
- func (m *PbSqlUndoLog) GetSqlType() int32
- func (m *PbSqlUndoLog) GetTableName() string
- func (*PbSqlUndoLog) ProtoMessage()
- func (m *PbSqlUndoLog) Reset()
- func (m *PbSqlUndoLog) String() string
- func (m *PbSqlUndoLog) XXX_DiscardUnknown()
- func (m *PbSqlUndoLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PbSqlUndoLog) XXX_Merge(src proto.Message)
- func (m *PbSqlUndoLog) XXX_Size() int
- func (m *PbSqlUndoLog) XXX_Unmarshal(b []byte) error
- type PbTableRecords
- func (*PbTableRecords) Descriptor() ([]byte, []int)
- func (m *PbTableRecords) GetRows() []*PbRow
- func (m *PbTableRecords) GetTableName() string
- func (*PbTableRecords) ProtoMessage()
- func (m *PbTableRecords) Reset()
- func (m *PbTableRecords) String() string
- func (m *PbTableRecords) XXX_DiscardUnknown()
- func (m *PbTableRecords) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PbTableRecords) XXX_Merge(src proto.Message)
- func (m *PbTableRecords) XXX_Size() int
- func (m *PbTableRecords) XXX_Unmarshal(b []byte) error
- type ProtoBufUndoLogParser
- type UndoLogParser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MysqlFieldValueType ¶
type MysqlFieldValueType byte
const ( MysqlFieldValueType_Int64 MysqlFieldValueType = iota MysqlFieldValueType_Float32 MysqlFieldValueType_Float64 MysqlFieldValueType_Uint8Slice MysqlFieldValueType_Time )
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PbBranchUndoLog) Descriptor ¶
func (*PbBranchUndoLog) Descriptor() ([]byte, []int)
func (*PbBranchUndoLog) GetBranchID ¶ added in v0.2.0
func (m *PbBranchUndoLog) GetBranchID() int64
func (*PbBranchUndoLog) GetSqlUndoLogs ¶
func (m *PbBranchUndoLog) GetSqlUndoLogs() []*PbSqlUndoLog
func (*PbBranchUndoLog) GetXid ¶
func (m *PbBranchUndoLog) GetXid() string
func (*PbBranchUndoLog) ProtoMessage ¶
func (*PbBranchUndoLog) ProtoMessage()
func (*PbBranchUndoLog) Reset ¶
func (m *PbBranchUndoLog) Reset()
func (*PbBranchUndoLog) String ¶
func (m *PbBranchUndoLog) String() string
func (*PbBranchUndoLog) XXX_DiscardUnknown ¶
func (m *PbBranchUndoLog) XXX_DiscardUnknown()
func (*PbBranchUndoLog) XXX_Marshal ¶
func (m *PbBranchUndoLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PbBranchUndoLog) XXX_Merge ¶
func (m *PbBranchUndoLog) XXX_Merge(src proto.Message)
func (*PbBranchUndoLog) XXX_Size ¶
func (m *PbBranchUndoLog) XXX_Size() int
func (*PbBranchUndoLog) XXX_Unmarshal ¶
func (m *PbBranchUndoLog) XXX_Unmarshal(b []byte) error
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PbField) Descriptor ¶
func (*PbField) GetKeyType ¶
func (*PbField) ProtoMessage ¶
func (*PbField) ProtoMessage()
func (*PbField) XXX_DiscardUnknown ¶
func (m *PbField) XXX_DiscardUnknown()
func (*PbField) XXX_Marshal ¶
func (*PbField) XXX_Unmarshal ¶
type PbRow ¶
type PbRow struct { Fields []*PbField `protobuf:"bytes,1,rep,name=Fields,proto3" json:"Fields,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PbRow) Descriptor ¶
func (*PbRow) ProtoMessage ¶
func (*PbRow) ProtoMessage()
func (*PbRow) XXX_DiscardUnknown ¶
func (m *PbRow) XXX_DiscardUnknown()
func (*PbRow) XXX_Marshal ¶
func (*PbRow) XXX_Unmarshal ¶
type PbSqlUndoLog ¶
type PbSqlUndoLog struct { SqlType int32 `protobuf:"varint,1,opt,name=SqlType,proto3" json:"SqlType,omitempty"` TableName string `protobuf:"bytes,2,opt,name=TableName,proto3" json:"TableName,omitempty"` BeforeImage *PbTableRecords `protobuf:"bytes,3,opt,name=BeforeImage,proto3" json:"BeforeImage,omitempty"` AfterImage *PbTableRecords `protobuf:"bytes,4,opt,name=AfterImage,proto3" json:"AfterImage,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PbSqlUndoLog) Descriptor ¶
func (*PbSqlUndoLog) Descriptor() ([]byte, []int)
func (*PbSqlUndoLog) GetAfterImage ¶
func (m *PbSqlUndoLog) GetAfterImage() *PbTableRecords
func (*PbSqlUndoLog) GetBeforeImage ¶
func (m *PbSqlUndoLog) GetBeforeImage() *PbTableRecords
func (*PbSqlUndoLog) GetSqlType ¶
func (m *PbSqlUndoLog) GetSqlType() int32
func (*PbSqlUndoLog) GetTableName ¶
func (m *PbSqlUndoLog) GetTableName() string
func (*PbSqlUndoLog) ProtoMessage ¶
func (*PbSqlUndoLog) ProtoMessage()
func (*PbSqlUndoLog) Reset ¶
func (m *PbSqlUndoLog) Reset()
func (*PbSqlUndoLog) String ¶
func (m *PbSqlUndoLog) String() string
func (*PbSqlUndoLog) XXX_DiscardUnknown ¶
func (m *PbSqlUndoLog) XXX_DiscardUnknown()
func (*PbSqlUndoLog) XXX_Marshal ¶
func (m *PbSqlUndoLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PbSqlUndoLog) XXX_Merge ¶
func (m *PbSqlUndoLog) XXX_Merge(src proto.Message)
func (*PbSqlUndoLog) XXX_Size ¶
func (m *PbSqlUndoLog) XXX_Size() int
func (*PbSqlUndoLog) XXX_Unmarshal ¶
func (m *PbSqlUndoLog) XXX_Unmarshal(b []byte) error
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PbTableRecords) Descriptor ¶
func (*PbTableRecords) Descriptor() ([]byte, []int)
func (*PbTableRecords) GetRows ¶
func (m *PbTableRecords) GetRows() []*PbRow
func (*PbTableRecords) GetTableName ¶
func (m *PbTableRecords) GetTableName() string
func (*PbTableRecords) ProtoMessage ¶
func (*PbTableRecords) ProtoMessage()
func (*PbTableRecords) Reset ¶
func (m *PbTableRecords) Reset()
func (*PbTableRecords) String ¶
func (m *PbTableRecords) String() string
func (*PbTableRecords) XXX_DiscardUnknown ¶
func (m *PbTableRecords) XXX_DiscardUnknown()
func (*PbTableRecords) XXX_Marshal ¶
func (m *PbTableRecords) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PbTableRecords) XXX_Merge ¶
func (m *PbTableRecords) XXX_Merge(src proto.Message)
func (*PbTableRecords) XXX_Size ¶
func (m *PbTableRecords) XXX_Size() int
func (*PbTableRecords) XXX_Unmarshal ¶
func (m *PbTableRecords) XXX_Unmarshal(b []byte) error
type ProtoBufUndoLogParser ¶
type ProtoBufUndoLogParser struct { }
func (ProtoBufUndoLogParser) Decode ¶
func (parser ProtoBufUndoLogParser) Decode(data []byte) *undo.BranchUndoLog
func (ProtoBufUndoLogParser) Encode ¶
func (parser ProtoBufUndoLogParser) Encode(branchUndoLog *undo.BranchUndoLog) []byte
func (ProtoBufUndoLogParser) GetDefaultContent ¶
func (parser ProtoBufUndoLogParser) GetDefaultContent() []byte
func (ProtoBufUndoLogParser) GetName ¶
func (parser ProtoBufUndoLogParser) GetName() string
type UndoLogParser ¶
type UndoLogParser interface { GetName() string // return the default content if undo log is empty GetDefaultContent() []byte Encode(branchUndoLog *undo.BranchUndoLog) []byte Decode(data []byte) *undo.BranchUndoLog }
func GetUndoLogParser ¶
func GetUndoLogParser() UndoLogParser
Click to show internal directories.
Click to hide internal directories.