go-vitess.v1: gopkg.in/src-d/go-vitess.v1/vt/proto/binlogdata Index | Files

package binlogdata

import "gopkg.in/src-d/go-vitess.v1/vt/proto/binlogdata"

Index

Package Files

binlogdata.pb.go

Variables

var BinlogTransaction_Statement_Category_name = map[int32]string{
    0:  "BL_UNRECOGNIZED",
    1:  "BL_BEGIN",
    2:  "BL_COMMIT",
    3:  "BL_ROLLBACK",
    4:  "BL_DML_DEPRECATED",
    5:  "BL_DDL",
    6:  "BL_SET",
    7:  "BL_INSERT",
    8:  "BL_UPDATE",
    9:  "BL_DELETE",
}
var BinlogTransaction_Statement_Category_value = map[string]int32{
    "BL_UNRECOGNIZED":   0,
    "BL_BEGIN":          1,
    "BL_COMMIT":         2,
    "BL_ROLLBACK":       3,
    "BL_DML_DEPRECATED": 4,
    "BL_DDL":            5,
    "BL_SET":            6,
    "BL_INSERT":         7,
    "BL_UPDATE":         8,
    "BL_DELETE":         9,
}
var OnDDLAction_name = map[int32]string{
    0:  "IGNORE",
    1:  "STOP",
    2:  "EXEC",
    3:  "EXEC_IGNORE",
}
var OnDDLAction_value = map[string]int32{
    "IGNORE":      0,
    "STOP":        1,
    "EXEC":        2,
    "EXEC_IGNORE": 3,
}
var VEventType_name = map[int32]string{
    0:  "UNKNOWN",
    1:  "GTID",
    2:  "BEGIN",
    3:  "COMMIT",
    4:  "ROLLBACK",
    5:  "DDL",
    6:  "INSERT",
    7:  "REPLACE",
    8:  "UPDATE",
    9:  "DELETE",
    10: "SET",
    11: "OTHER",
    12: "ROW",
    13: "FIELD",
    14: "HEARTBEAT",
}
var VEventType_value = map[string]int32{
    "UNKNOWN":   0,
    "GTID":      1,
    "BEGIN":     2,
    "COMMIT":    3,
    "ROLLBACK":  4,
    "DDL":       5,
    "INSERT":    6,
    "REPLACE":   7,
    "UPDATE":    8,
    "DELETE":    9,
    "SET":       10,
    "OTHER":     11,
    "ROW":       12,
    "FIELD":     13,
    "HEARTBEAT": 14,
}

type BinlogSource Uses

type BinlogSource struct {
    // the source keyspace
    Keyspace string `protobuf:"bytes,1,opt,name=keyspace,proto3" json:"keyspace,omitempty"`
    // the source shard
    Shard string `protobuf:"bytes,2,opt,name=shard,proto3" json:"shard,omitempty"`
    // the source tablet type
    TabletType topodata.TabletType `protobuf:"varint,3,opt,name=tablet_type,json=tabletType,proto3,enum=topodata.TabletType" json:"tablet_type,omitempty"`
    // key_range is set if the request is for a keyrange
    KeyRange *topodata.KeyRange `protobuf:"bytes,4,opt,name=key_range,json=keyRange,proto3" json:"key_range,omitempty"`
    // tables is set if the request is for a list of tables
    Tables []string `protobuf:"bytes,5,rep,name=tables,proto3" json:"tables,omitempty"`
    // filter is set if we're using the generalized representation
    // for the filter.
    Filter *Filter `protobuf:"bytes,6,opt,name=filter,proto3" json:"filter,omitempty"`
    // on_ddl specifies the action to be taken when a DDL is encountered.
    OnDdl                OnDDLAction `protobuf:"varint,7,opt,name=on_ddl,json=onDdl,proto3,enum=binlogdata.OnDDLAction" json:"on_ddl,omitempty"`
    XXX_NoUnkeyedLiteral struct{}    `json:"-"`
    XXX_unrecognized     []byte      `json:"-"`
    XXX_sizecache        int32       `json:"-"`
}

BinlogSource specifies the source and filter parameters for Filtered Replication. It currently supports a keyrange or a list of tables.

func (*BinlogSource) Descriptor Uses

func (*BinlogSource) Descriptor() ([]byte, []int)

func (*BinlogSource) GetFilter Uses

func (m *BinlogSource) GetFilter() *Filter

func (*BinlogSource) GetKeyRange Uses

func (m *BinlogSource) GetKeyRange() *topodata.KeyRange

func (*BinlogSource) GetKeyspace Uses

func (m *BinlogSource) GetKeyspace() string

func (*BinlogSource) GetOnDdl Uses

func (m *BinlogSource) GetOnDdl() OnDDLAction

func (*BinlogSource) GetShard Uses

func (m *BinlogSource) GetShard() string

func (*BinlogSource) GetTables Uses

func (m *BinlogSource) GetTables() []string

func (*BinlogSource) GetTabletType Uses

func (m *BinlogSource) GetTabletType() topodata.TabletType

func (*BinlogSource) ProtoMessage Uses

func (*BinlogSource) ProtoMessage()

func (*BinlogSource) Reset Uses

func (m *BinlogSource) Reset()

func (*BinlogSource) String Uses

func (m *BinlogSource) String() string

func (*BinlogSource) XXX_DiscardUnknown Uses

func (m *BinlogSource) XXX_DiscardUnknown()

func (*BinlogSource) XXX_Marshal Uses

func (m *BinlogSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BinlogSource) XXX_Merge Uses

func (dst *BinlogSource) XXX_Merge(src proto.Message)

func (*BinlogSource) XXX_Size Uses

func (m *BinlogSource) XXX_Size() int

func (*BinlogSource) XXX_Unmarshal Uses

func (m *BinlogSource) XXX_Unmarshal(b []byte) error

type BinlogTransaction Uses

type BinlogTransaction struct {
    // the statements in this transaction
    Statements []*BinlogTransaction_Statement `protobuf:"bytes,1,rep,name=statements,proto3" json:"statements,omitempty"`
    // The Event Token for this event.
    EventToken           *query.EventToken `protobuf:"bytes,4,opt,name=event_token,json=eventToken,proto3" json:"event_token,omitempty"`
    XXX_NoUnkeyedLiteral struct{}          `json:"-"`
    XXX_unrecognized     []byte            `json:"-"`
    XXX_sizecache        int32             `json:"-"`
}

BinlogTransaction describes a transaction inside the binlogs. It is streamed by vttablet for filtered replication, used during resharding.

func (*BinlogTransaction) Descriptor Uses

func (*BinlogTransaction) Descriptor() ([]byte, []int)

func (*BinlogTransaction) GetEventToken Uses

func (m *BinlogTransaction) GetEventToken() *query.EventToken

func (*BinlogTransaction) GetStatements Uses

func (m *BinlogTransaction) GetStatements() []*BinlogTransaction_Statement

func (*BinlogTransaction) ProtoMessage Uses

func (*BinlogTransaction) ProtoMessage()

func (*BinlogTransaction) Reset Uses

func (m *BinlogTransaction) Reset()

func (*BinlogTransaction) String Uses

func (m *BinlogTransaction) String() string

func (*BinlogTransaction) XXX_DiscardUnknown Uses

func (m *BinlogTransaction) XXX_DiscardUnknown()

func (*BinlogTransaction) XXX_Marshal Uses

func (m *BinlogTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BinlogTransaction) XXX_Merge Uses

func (dst *BinlogTransaction) XXX_Merge(src proto.Message)

func (*BinlogTransaction) XXX_Size Uses

func (m *BinlogTransaction) XXX_Size() int

func (*BinlogTransaction) XXX_Unmarshal Uses

func (m *BinlogTransaction) XXX_Unmarshal(b []byte) error

type BinlogTransaction_Statement Uses

type BinlogTransaction_Statement struct {
    // what type of statement is this?
    Category BinlogTransaction_Statement_Category `protobuf:"varint,1,opt,name=category,proto3,enum=binlogdata.BinlogTransaction_Statement_Category" json:"category,omitempty"`
    // charset of this statement, if different from pre-negotiated default.
    Charset *Charset `protobuf:"bytes,2,opt,name=charset,proto3" json:"charset,omitempty"`
    // the sql
    Sql                  []byte   `protobuf:"bytes,3,opt,name=sql,proto3" json:"sql,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*BinlogTransaction_Statement) Descriptor Uses

func (*BinlogTransaction_Statement) Descriptor() ([]byte, []int)

func (*BinlogTransaction_Statement) GetCategory Uses

func (m *BinlogTransaction_Statement) GetCategory() BinlogTransaction_Statement_Category

func (*BinlogTransaction_Statement) GetCharset Uses

func (m *BinlogTransaction_Statement) GetCharset() *Charset

func (*BinlogTransaction_Statement) GetSql Uses

func (m *BinlogTransaction_Statement) GetSql() []byte

func (*BinlogTransaction_Statement) ProtoMessage Uses

func (*BinlogTransaction_Statement) ProtoMessage()

func (*BinlogTransaction_Statement) Reset Uses

func (m *BinlogTransaction_Statement) Reset()

func (*BinlogTransaction_Statement) String Uses

func (m *BinlogTransaction_Statement) String() string

func (*BinlogTransaction_Statement) XXX_DiscardUnknown Uses

func (m *BinlogTransaction_Statement) XXX_DiscardUnknown()

func (*BinlogTransaction_Statement) XXX_Marshal Uses

func (m *BinlogTransaction_Statement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BinlogTransaction_Statement) XXX_Merge Uses

func (dst *BinlogTransaction_Statement) XXX_Merge(src proto.Message)

func (*BinlogTransaction_Statement) XXX_Size Uses

func (m *BinlogTransaction_Statement) XXX_Size() int

func (*BinlogTransaction_Statement) XXX_Unmarshal Uses

func (m *BinlogTransaction_Statement) XXX_Unmarshal(b []byte) error

type BinlogTransaction_Statement_Category Uses

type BinlogTransaction_Statement_Category int32
const (
    BinlogTransaction_Statement_BL_UNRECOGNIZED BinlogTransaction_Statement_Category = 0
    BinlogTransaction_Statement_BL_BEGIN        BinlogTransaction_Statement_Category = 1
    BinlogTransaction_Statement_BL_COMMIT       BinlogTransaction_Statement_Category = 2
    BinlogTransaction_Statement_BL_ROLLBACK     BinlogTransaction_Statement_Category = 3
    // BL_DML is deprecated.
    BinlogTransaction_Statement_BL_DML_DEPRECATED BinlogTransaction_Statement_Category = 4
    BinlogTransaction_Statement_BL_DDL            BinlogTransaction_Statement_Category = 5
    BinlogTransaction_Statement_BL_SET            BinlogTransaction_Statement_Category = 6
    BinlogTransaction_Statement_BL_INSERT         BinlogTransaction_Statement_Category = 7
    BinlogTransaction_Statement_BL_UPDATE         BinlogTransaction_Statement_Category = 8
    BinlogTransaction_Statement_BL_DELETE         BinlogTransaction_Statement_Category = 9
)

func (BinlogTransaction_Statement_Category) EnumDescriptor Uses

func (BinlogTransaction_Statement_Category) EnumDescriptor() ([]byte, []int)

func (BinlogTransaction_Statement_Category) String Uses

func (x BinlogTransaction_Statement_Category) String() string

type Charset Uses

type Charset struct {
    // @@session.character_set_client
    Client int32 `protobuf:"varint,1,opt,name=client,proto3" json:"client,omitempty"`
    // @@session.collation_connection
    Conn int32 `protobuf:"varint,2,opt,name=conn,proto3" json:"conn,omitempty"`
    // @@session.collation_server
    Server               int32    `protobuf:"varint,3,opt,name=server,proto3" json:"server,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Charset is the per-statement charset info from a QUERY_EVENT binlog entry.

func (*Charset) Descriptor Uses

func (*Charset) Descriptor() ([]byte, []int)

func (*Charset) GetClient Uses

func (m *Charset) GetClient() int32

func (*Charset) GetConn Uses

func (m *Charset) GetConn() int32

func (*Charset) GetServer Uses

func (m *Charset) GetServer() int32

func (*Charset) ProtoMessage Uses

func (*Charset) ProtoMessage()

func (*Charset) Reset Uses

func (m *Charset) Reset()

func (*Charset) String Uses

func (m *Charset) String() string

func (*Charset) XXX_DiscardUnknown Uses

func (m *Charset) XXX_DiscardUnknown()

func (*Charset) XXX_Marshal Uses

func (m *Charset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Charset) XXX_Merge Uses

func (dst *Charset) XXX_Merge(src proto.Message)

func (*Charset) XXX_Size Uses

func (m *Charset) XXX_Size() int

func (*Charset) XXX_Unmarshal Uses

func (m *Charset) XXX_Unmarshal(b []byte) error

type FieldEvent Uses

type FieldEvent struct {
    TableName            string         `protobuf:"bytes,1,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"`
    Fields               []*query.Field `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"`
    XXX_NoUnkeyedLiteral struct{}       `json:"-"`
    XXX_unrecognized     []byte         `json:"-"`
    XXX_sizecache        int32          `json:"-"`
}

func (*FieldEvent) Descriptor Uses

func (*FieldEvent) Descriptor() ([]byte, []int)

func (*FieldEvent) GetFields Uses

func (m *FieldEvent) GetFields() []*query.Field

func (*FieldEvent) GetTableName Uses

func (m *FieldEvent) GetTableName() string

func (*FieldEvent) ProtoMessage Uses

func (*FieldEvent) ProtoMessage()

func (*FieldEvent) Reset Uses

func (m *FieldEvent) Reset()

func (*FieldEvent) String Uses

func (m *FieldEvent) String() string

func (*FieldEvent) XXX_DiscardUnknown Uses

func (m *FieldEvent) XXX_DiscardUnknown()

func (*FieldEvent) XXX_Marshal Uses

func (m *FieldEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FieldEvent) XXX_Merge Uses

func (dst *FieldEvent) XXX_Merge(src proto.Message)

func (*FieldEvent) XXX_Size Uses

func (m *FieldEvent) XXX_Size() int

func (*FieldEvent) XXX_Unmarshal Uses

func (m *FieldEvent) XXX_Unmarshal(b []byte) error

type Filter Uses

type Filter struct {
    Rules                []*Rule  `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Filter represents a list of ordered rules. First match wins.

func (*Filter) Descriptor Uses

func (*Filter) Descriptor() ([]byte, []int)

func (*Filter) GetRules Uses

func (m *Filter) GetRules() []*Rule

func (*Filter) ProtoMessage Uses

func (*Filter) ProtoMessage()

func (*Filter) Reset Uses

func (m *Filter) Reset()

func (*Filter) String Uses

func (m *Filter) String() string

func (*Filter) XXX_DiscardUnknown Uses

func (m *Filter) XXX_DiscardUnknown()

func (*Filter) XXX_Marshal Uses

func (m *Filter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Filter) XXX_Merge Uses

func (dst *Filter) XXX_Merge(src proto.Message)

func (*Filter) XXX_Size Uses

func (m *Filter) XXX_Size() int

func (*Filter) XXX_Unmarshal Uses

func (m *Filter) XXX_Unmarshal(b []byte) error

type OnDDLAction Uses

type OnDDLAction int32

OnDDLAction lists the possible actions for DDLs.

const (
    OnDDLAction_IGNORE      OnDDLAction = 0
    OnDDLAction_STOP        OnDDLAction = 1
    OnDDLAction_EXEC        OnDDLAction = 2
    OnDDLAction_EXEC_IGNORE OnDDLAction = 3
)

func (OnDDLAction) EnumDescriptor Uses

func (OnDDLAction) EnumDescriptor() ([]byte, []int)

func (OnDDLAction) String Uses

func (x OnDDLAction) String() string

type RowChange Uses

type RowChange struct {
    Before               *query.Row `protobuf:"bytes,1,opt,name=before,proto3" json:"before,omitempty"`
    After                *query.Row `protobuf:"bytes,2,opt,name=after,proto3" json:"after,omitempty"`
    XXX_NoUnkeyedLiteral struct{}   `json:"-"`
    XXX_unrecognized     []byte     `json:"-"`
    XXX_sizecache        int32      `json:"-"`
}

RowChange represents one row change

func (*RowChange) Descriptor Uses

func (*RowChange) Descriptor() ([]byte, []int)

func (*RowChange) GetAfter Uses

func (m *RowChange) GetAfter() *query.Row

func (*RowChange) GetBefore Uses

func (m *RowChange) GetBefore() *query.Row

func (*RowChange) ProtoMessage Uses

func (*RowChange) ProtoMessage()

func (*RowChange) Reset Uses

func (m *RowChange) Reset()

func (*RowChange) String Uses

func (m *RowChange) String() string

func (*RowChange) XXX_DiscardUnknown Uses

func (m *RowChange) XXX_DiscardUnknown()

func (*RowChange) XXX_Marshal Uses

func (m *RowChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RowChange) XXX_Merge Uses

func (dst *RowChange) XXX_Merge(src proto.Message)

func (*RowChange) XXX_Size Uses

func (m *RowChange) XXX_Size() int

func (*RowChange) XXX_Unmarshal Uses

func (m *RowChange) XXX_Unmarshal(b []byte) error

type RowEvent Uses

type RowEvent struct {
    TableName            string       `protobuf:"bytes,1,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"`
    RowChanges           []*RowChange `protobuf:"bytes,2,rep,name=row_changes,json=rowChanges,proto3" json:"row_changes,omitempty"`
    XXX_NoUnkeyedLiteral struct{}     `json:"-"`
    XXX_unrecognized     []byte       `json:"-"`
    XXX_sizecache        int32        `json:"-"`
}

RowEvent represent row events for one table

func (*RowEvent) Descriptor Uses

func (*RowEvent) Descriptor() ([]byte, []int)

func (*RowEvent) GetRowChanges Uses

func (m *RowEvent) GetRowChanges() []*RowChange

func (*RowEvent) GetTableName Uses

func (m *RowEvent) GetTableName() string

func (*RowEvent) ProtoMessage Uses

func (*RowEvent) ProtoMessage()

func (*RowEvent) Reset Uses

func (m *RowEvent) Reset()

func (*RowEvent) String Uses

func (m *RowEvent) String() string

func (*RowEvent) XXX_DiscardUnknown Uses

func (m *RowEvent) XXX_DiscardUnknown()

func (*RowEvent) XXX_Marshal Uses

func (m *RowEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RowEvent) XXX_Merge Uses

func (dst *RowEvent) XXX_Merge(src proto.Message)

func (*RowEvent) XXX_Size Uses

func (m *RowEvent) XXX_Size() int

func (*RowEvent) XXX_Unmarshal Uses

func (m *RowEvent) XXX_Unmarshal(b []byte) error

type Rule Uses

type Rule struct {
    // match can be a table name or a regular expression
    // delineated by '/' and '/'.
    Match string `protobuf:"bytes,1,opt,name=match,proto3" json:"match,omitempty"`
    // filter can be an empty string or keyrange if the match
    // is a regular expression. Otherwise, it must be a select
    // query.
    Filter               string   `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Rule represents one rule.

func (*Rule) Descriptor Uses

func (*Rule) Descriptor() ([]byte, []int)

func (*Rule) GetFilter Uses

func (m *Rule) GetFilter() string

func (*Rule) GetMatch Uses

func (m *Rule) GetMatch() string

func (*Rule) ProtoMessage Uses

func (*Rule) ProtoMessage()

func (*Rule) Reset Uses

func (m *Rule) Reset()

func (*Rule) String Uses

func (m *Rule) String() string

func (*Rule) XXX_DiscardUnknown Uses

func (m *Rule) XXX_DiscardUnknown()

func (*Rule) XXX_Marshal Uses

func (m *Rule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Rule) XXX_Merge Uses

func (dst *Rule) XXX_Merge(src proto.Message)

func (*Rule) XXX_Size Uses

func (m *Rule) XXX_Size() int

func (*Rule) XXX_Unmarshal Uses

func (m *Rule) XXX_Unmarshal(b []byte) error

type StreamKeyRangeRequest Uses

type StreamKeyRangeRequest struct {
    // where to start
    Position string `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"`
    // what to get
    KeyRange *topodata.KeyRange `protobuf:"bytes,2,opt,name=key_range,json=keyRange,proto3" json:"key_range,omitempty"`
    // default charset on the player side
    Charset              *Charset `protobuf:"bytes,3,opt,name=charset,proto3" json:"charset,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

StreamKeyRangeRequest is the payload to StreamKeyRange

func (*StreamKeyRangeRequest) Descriptor Uses

func (*StreamKeyRangeRequest) Descriptor() ([]byte, []int)

func (*StreamKeyRangeRequest) GetCharset Uses

func (m *StreamKeyRangeRequest) GetCharset() *Charset

func (*StreamKeyRangeRequest) GetKeyRange Uses

func (m *StreamKeyRangeRequest) GetKeyRange() *topodata.KeyRange

func (*StreamKeyRangeRequest) GetPosition Uses

func (m *StreamKeyRangeRequest) GetPosition() string

func (*StreamKeyRangeRequest) ProtoMessage Uses

func (*StreamKeyRangeRequest) ProtoMessage()

func (*StreamKeyRangeRequest) Reset Uses

func (m *StreamKeyRangeRequest) Reset()

func (*StreamKeyRangeRequest) String Uses

func (m *StreamKeyRangeRequest) String() string

func (*StreamKeyRangeRequest) XXX_DiscardUnknown Uses

func (m *StreamKeyRangeRequest) XXX_DiscardUnknown()

func (*StreamKeyRangeRequest) XXX_Marshal Uses

func (m *StreamKeyRangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StreamKeyRangeRequest) XXX_Merge Uses

func (dst *StreamKeyRangeRequest) XXX_Merge(src proto.Message)

func (*StreamKeyRangeRequest) XXX_Size Uses

func (m *StreamKeyRangeRequest) XXX_Size() int

func (*StreamKeyRangeRequest) XXX_Unmarshal Uses

func (m *StreamKeyRangeRequest) XXX_Unmarshal(b []byte) error

type StreamKeyRangeResponse Uses

type StreamKeyRangeResponse struct {
    BinlogTransaction    *BinlogTransaction `protobuf:"bytes,1,opt,name=binlog_transaction,json=binlogTransaction,proto3" json:"binlog_transaction,omitempty"`
    XXX_NoUnkeyedLiteral struct{}           `json:"-"`
    XXX_unrecognized     []byte             `json:"-"`
    XXX_sizecache        int32              `json:"-"`
}

StreamKeyRangeResponse is the response from StreamKeyRange

func (*StreamKeyRangeResponse) Descriptor Uses

func (*StreamKeyRangeResponse) Descriptor() ([]byte, []int)

func (*StreamKeyRangeResponse) GetBinlogTransaction Uses

func (m *StreamKeyRangeResponse) GetBinlogTransaction() *BinlogTransaction

func (*StreamKeyRangeResponse) ProtoMessage Uses

func (*StreamKeyRangeResponse) ProtoMessage()

func (*StreamKeyRangeResponse) Reset Uses

func (m *StreamKeyRangeResponse) Reset()

func (*StreamKeyRangeResponse) String Uses

func (m *StreamKeyRangeResponse) String() string

func (*StreamKeyRangeResponse) XXX_DiscardUnknown Uses

func (m *StreamKeyRangeResponse) XXX_DiscardUnknown()

func (*StreamKeyRangeResponse) XXX_Marshal Uses

func (m *StreamKeyRangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StreamKeyRangeResponse) XXX_Merge Uses

func (dst *StreamKeyRangeResponse) XXX_Merge(src proto.Message)

func (*StreamKeyRangeResponse) XXX_Size Uses

func (m *StreamKeyRangeResponse) XXX_Size() int

func (*StreamKeyRangeResponse) XXX_Unmarshal Uses

func (m *StreamKeyRangeResponse) XXX_Unmarshal(b []byte) error

type StreamTablesRequest Uses

type StreamTablesRequest struct {
    // where to start
    Position string `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"`
    // what to get
    Tables []string `protobuf:"bytes,2,rep,name=tables,proto3" json:"tables,omitempty"`
    // default charset on the player side
    Charset              *Charset `protobuf:"bytes,3,opt,name=charset,proto3" json:"charset,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

StreamTablesRequest is the payload to StreamTables

func (*StreamTablesRequest) Descriptor Uses

func (*StreamTablesRequest) Descriptor() ([]byte, []int)

func (*StreamTablesRequest) GetCharset Uses

func (m *StreamTablesRequest) GetCharset() *Charset

func (*StreamTablesRequest) GetPosition Uses

func (m *StreamTablesRequest) GetPosition() string

func (*StreamTablesRequest) GetTables Uses

func (m *StreamTablesRequest) GetTables() []string

func (*StreamTablesRequest) ProtoMessage Uses

func (*StreamTablesRequest) ProtoMessage()

func (*StreamTablesRequest) Reset Uses

func (m *StreamTablesRequest) Reset()

func (*StreamTablesRequest) String Uses

func (m *StreamTablesRequest) String() string

func (*StreamTablesRequest) XXX_DiscardUnknown Uses

func (m *StreamTablesRequest) XXX_DiscardUnknown()

func (*StreamTablesRequest) XXX_Marshal Uses

func (m *StreamTablesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StreamTablesRequest) XXX_Merge Uses

func (dst *StreamTablesRequest) XXX_Merge(src proto.Message)

func (*StreamTablesRequest) XXX_Size Uses

func (m *StreamTablesRequest) XXX_Size() int

func (*StreamTablesRequest) XXX_Unmarshal Uses

func (m *StreamTablesRequest) XXX_Unmarshal(b []byte) error

type StreamTablesResponse Uses

type StreamTablesResponse struct {
    BinlogTransaction    *BinlogTransaction `protobuf:"bytes,1,opt,name=binlog_transaction,json=binlogTransaction,proto3" json:"binlog_transaction,omitempty"`
    XXX_NoUnkeyedLiteral struct{}           `json:"-"`
    XXX_unrecognized     []byte             `json:"-"`
    XXX_sizecache        int32              `json:"-"`
}

StreamTablesResponse is the response from StreamTables

func (*StreamTablesResponse) Descriptor Uses

func (*StreamTablesResponse) Descriptor() ([]byte, []int)

func (*StreamTablesResponse) GetBinlogTransaction Uses

func (m *StreamTablesResponse) GetBinlogTransaction() *BinlogTransaction

func (*StreamTablesResponse) ProtoMessage Uses

func (*StreamTablesResponse) ProtoMessage()

func (*StreamTablesResponse) Reset Uses

func (m *StreamTablesResponse) Reset()

func (*StreamTablesResponse) String Uses

func (m *StreamTablesResponse) String() string

func (*StreamTablesResponse) XXX_DiscardUnknown Uses

func (m *StreamTablesResponse) XXX_DiscardUnknown()

func (*StreamTablesResponse) XXX_Marshal Uses

func (m *StreamTablesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StreamTablesResponse) XXX_Merge Uses

func (dst *StreamTablesResponse) XXX_Merge(src proto.Message)

func (*StreamTablesResponse) XXX_Size Uses

func (m *StreamTablesResponse) XXX_Size() int

func (*StreamTablesResponse) XXX_Unmarshal Uses

func (m *StreamTablesResponse) XXX_Unmarshal(b []byte) error

type VEvent Uses

type VEvent struct {
    Type       VEventType  `protobuf:"varint,1,opt,name=type,proto3,enum=binlogdata.VEventType" json:"type,omitempty"`
    Timestamp  int64       `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
    Gtid       string      `protobuf:"bytes,3,opt,name=gtid,proto3" json:"gtid,omitempty"`
    Ddl        string      `protobuf:"bytes,4,opt,name=ddl,proto3" json:"ddl,omitempty"`
    RowEvent   *RowEvent   `protobuf:"bytes,5,opt,name=row_event,json=rowEvent,proto3" json:"row_event,omitempty"`
    FieldEvent *FieldEvent `protobuf:"bytes,6,opt,name=field_event,json=fieldEvent,proto3" json:"field_event,omitempty"`
    // current_time specifies the current time to handle clock skew.
    CurrentTime          int64    `protobuf:"varint,20,opt,name=current_time,json=currentTime,proto3" json:"current_time,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

VEvent represents a vstream event

func (*VEvent) Descriptor Uses

func (*VEvent) Descriptor() ([]byte, []int)

func (*VEvent) GetCurrentTime Uses

func (m *VEvent) GetCurrentTime() int64

func (*VEvent) GetDdl Uses

func (m *VEvent) GetDdl() string

func (*VEvent) GetFieldEvent Uses

func (m *VEvent) GetFieldEvent() *FieldEvent

func (*VEvent) GetGtid Uses

func (m *VEvent) GetGtid() string

func (*VEvent) GetRowEvent Uses

func (m *VEvent) GetRowEvent() *RowEvent

func (*VEvent) GetTimestamp Uses

func (m *VEvent) GetTimestamp() int64

func (*VEvent) GetType Uses

func (m *VEvent) GetType() VEventType

func (*VEvent) ProtoMessage Uses

func (*VEvent) ProtoMessage()

func (*VEvent) Reset Uses

func (m *VEvent) Reset()

func (*VEvent) String Uses

func (m *VEvent) String() string

func (*VEvent) XXX_DiscardUnknown Uses

func (m *VEvent) XXX_DiscardUnknown()

func (*VEvent) XXX_Marshal Uses

func (m *VEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VEvent) XXX_Merge Uses

func (dst *VEvent) XXX_Merge(src proto.Message)

func (*VEvent) XXX_Size Uses

func (m *VEvent) XXX_Size() int

func (*VEvent) XXX_Unmarshal Uses

func (m *VEvent) XXX_Unmarshal(b []byte) error

type VEventType Uses

type VEventType int32

VEventType enumerates the event types. This list is comprehensive. Many of these types will not be encountered in RBR mode.

const (
    VEventType_UNKNOWN   VEventType = 0
    VEventType_GTID      VEventType = 1
    VEventType_BEGIN     VEventType = 2
    VEventType_COMMIT    VEventType = 3
    VEventType_ROLLBACK  VEventType = 4
    VEventType_DDL       VEventType = 5
    VEventType_INSERT    VEventType = 6
    VEventType_REPLACE   VEventType = 7
    VEventType_UPDATE    VEventType = 8
    VEventType_DELETE    VEventType = 9
    VEventType_SET       VEventType = 10
    VEventType_OTHER     VEventType = 11
    VEventType_ROW       VEventType = 12
    VEventType_FIELD     VEventType = 13
    VEventType_HEARTBEAT VEventType = 14
)

func (VEventType) EnumDescriptor Uses

func (VEventType) EnumDescriptor() ([]byte, []int)

func (VEventType) String Uses

func (x VEventType) String() string

type VStreamRequest Uses

type VStreamRequest struct {
    EffectiveCallerId    *vtrpc.CallerID       `protobuf:"bytes,1,opt,name=effective_caller_id,json=effectiveCallerId,proto3" json:"effective_caller_id,omitempty"`
    ImmediateCallerId    *query.VTGateCallerID `protobuf:"bytes,2,opt,name=immediate_caller_id,json=immediateCallerId,proto3" json:"immediate_caller_id,omitempty"`
    Target               *query.Target         `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
    Position             string                `protobuf:"bytes,4,opt,name=position,proto3" json:"position,omitempty"`
    Filter               *Filter               `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"`
    XXX_NoUnkeyedLiteral struct{}              `json:"-"`
    XXX_unrecognized     []byte                `json:"-"`
    XXX_sizecache        int32                 `json:"-"`
}

VStreamRequest is the payload for VStream

func (*VStreamRequest) Descriptor Uses

func (*VStreamRequest) Descriptor() ([]byte, []int)

func (*VStreamRequest) GetEffectiveCallerId Uses

func (m *VStreamRequest) GetEffectiveCallerId() *vtrpc.CallerID

func (*VStreamRequest) GetFilter Uses

func (m *VStreamRequest) GetFilter() *Filter

func (*VStreamRequest) GetImmediateCallerId Uses

func (m *VStreamRequest) GetImmediateCallerId() *query.VTGateCallerID

func (*VStreamRequest) GetPosition Uses

func (m *VStreamRequest) GetPosition() string

func (*VStreamRequest) GetTarget Uses

func (m *VStreamRequest) GetTarget() *query.Target

func (*VStreamRequest) ProtoMessage Uses

func (*VStreamRequest) ProtoMessage()

func (*VStreamRequest) Reset Uses

func (m *VStreamRequest) Reset()

func (*VStreamRequest) String Uses

func (m *VStreamRequest) String() string

func (*VStreamRequest) XXX_DiscardUnknown Uses

func (m *VStreamRequest) XXX_DiscardUnknown()

func (*VStreamRequest) XXX_Marshal Uses

func (m *VStreamRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VStreamRequest) XXX_Merge Uses

func (dst *VStreamRequest) XXX_Merge(src proto.Message)

func (*VStreamRequest) XXX_Size Uses

func (m *VStreamRequest) XXX_Size() int

func (*VStreamRequest) XXX_Unmarshal Uses

func (m *VStreamRequest) XXX_Unmarshal(b []byte) error

type VStreamResponse Uses

type VStreamResponse struct {
    Events               []*VEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
    XXX_NoUnkeyedLiteral struct{}  `json:"-"`
    XXX_unrecognized     []byte    `json:"-"`
    XXX_sizecache        int32     `json:"-"`
}

VStreamResponse is the response from VStream

func (*VStreamResponse) Descriptor Uses

func (*VStreamResponse) Descriptor() ([]byte, []int)

func (*VStreamResponse) GetEvents Uses

func (m *VStreamResponse) GetEvents() []*VEvent

func (*VStreamResponse) ProtoMessage Uses

func (*VStreamResponse) ProtoMessage()

func (*VStreamResponse) Reset Uses

func (m *VStreamResponse) Reset()

func (*VStreamResponse) String Uses

func (m *VStreamResponse) String() string

func (*VStreamResponse) XXX_DiscardUnknown Uses

func (m *VStreamResponse) XXX_DiscardUnknown()

func (*VStreamResponse) XXX_Marshal Uses

func (m *VStreamResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VStreamResponse) XXX_Merge Uses

func (dst *VStreamResponse) XXX_Merge(src proto.Message)

func (*VStreamResponse) XXX_Size Uses

func (m *VStreamResponse) XXX_Size() int

func (*VStreamResponse) XXX_Unmarshal Uses

func (m *VStreamResponse) XXX_Unmarshal(b []byte) error

type VStreamRowsRequest Uses

type VStreamRowsRequest struct {
    EffectiveCallerId    *vtrpc.CallerID       `protobuf:"bytes,1,opt,name=effective_caller_id,json=effectiveCallerId,proto3" json:"effective_caller_id,omitempty"`
    ImmediateCallerId    *query.VTGateCallerID `protobuf:"bytes,2,opt,name=immediate_caller_id,json=immediateCallerId,proto3" json:"immediate_caller_id,omitempty"`
    Target               *query.Target         `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
    Query                string                `protobuf:"bytes,4,opt,name=query,proto3" json:"query,omitempty"`
    Lastpk               *query.QueryResult    `protobuf:"bytes,5,opt,name=lastpk,proto3" json:"lastpk,omitempty"`
    XXX_NoUnkeyedLiteral struct{}              `json:"-"`
    XXX_unrecognized     []byte                `json:"-"`
    XXX_sizecache        int32                 `json:"-"`
}

VStreamRowsRequest is the payload for VStreamRows

func (*VStreamRowsRequest) Descriptor Uses

func (*VStreamRowsRequest) Descriptor() ([]byte, []int)

func (*VStreamRowsRequest) GetEffectiveCallerId Uses

func (m *VStreamRowsRequest) GetEffectiveCallerId() *vtrpc.CallerID

func (*VStreamRowsRequest) GetImmediateCallerId Uses

func (m *VStreamRowsRequest) GetImmediateCallerId() *query.VTGateCallerID

func (*VStreamRowsRequest) GetLastpk Uses

func (m *VStreamRowsRequest) GetLastpk() *query.QueryResult

func (*VStreamRowsRequest) GetQuery Uses

func (m *VStreamRowsRequest) GetQuery() string

func (*VStreamRowsRequest) GetTarget Uses

func (m *VStreamRowsRequest) GetTarget() *query.Target

func (*VStreamRowsRequest) ProtoMessage Uses

func (*VStreamRowsRequest) ProtoMessage()

func (*VStreamRowsRequest) Reset Uses

func (m *VStreamRowsRequest) Reset()

func (*VStreamRowsRequest) String Uses

func (m *VStreamRowsRequest) String() string

func (*VStreamRowsRequest) XXX_DiscardUnknown Uses

func (m *VStreamRowsRequest) XXX_DiscardUnknown()

func (*VStreamRowsRequest) XXX_Marshal Uses

func (m *VStreamRowsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VStreamRowsRequest) XXX_Merge Uses

func (dst *VStreamRowsRequest) XXX_Merge(src proto.Message)

func (*VStreamRowsRequest) XXX_Size Uses

func (m *VStreamRowsRequest) XXX_Size() int

func (*VStreamRowsRequest) XXX_Unmarshal Uses

func (m *VStreamRowsRequest) XXX_Unmarshal(b []byte) error

type VStreamRowsResponse Uses

type VStreamRowsResponse struct {
    Fields               []*query.Field `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"`
    Pkfields             []*query.Field `protobuf:"bytes,2,rep,name=pkfields,proto3" json:"pkfields,omitempty"`
    Gtid                 string         `protobuf:"bytes,3,opt,name=gtid,proto3" json:"gtid,omitempty"`
    Rows                 []*query.Row   `protobuf:"bytes,4,rep,name=rows,proto3" json:"rows,omitempty"`
    Lastpk               *query.Row     `protobuf:"bytes,5,opt,name=lastpk,proto3" json:"lastpk,omitempty"`
    XXX_NoUnkeyedLiteral struct{}       `json:"-"`
    XXX_unrecognized     []byte         `json:"-"`
    XXX_sizecache        int32          `json:"-"`
}

VStreamRowsResponse is the response from VStreamRows

func (*VStreamRowsResponse) Descriptor Uses

func (*VStreamRowsResponse) Descriptor() ([]byte, []int)

func (*VStreamRowsResponse) GetFields Uses

func (m *VStreamRowsResponse) GetFields() []*query.Field

func (*VStreamRowsResponse) GetGtid Uses

func (m *VStreamRowsResponse) GetGtid() string

func (*VStreamRowsResponse) GetLastpk Uses

func (m *VStreamRowsResponse) GetLastpk() *query.Row

func (*VStreamRowsResponse) GetPkfields Uses

func (m *VStreamRowsResponse) GetPkfields() []*query.Field

func (*VStreamRowsResponse) GetRows Uses

func (m *VStreamRowsResponse) GetRows() []*query.Row

func (*VStreamRowsResponse) ProtoMessage Uses

func (*VStreamRowsResponse) ProtoMessage()

func (*VStreamRowsResponse) Reset Uses

func (m *VStreamRowsResponse) Reset()

func (*VStreamRowsResponse) String Uses

func (m *VStreamRowsResponse) String() string

func (*VStreamRowsResponse) XXX_DiscardUnknown Uses

func (m *VStreamRowsResponse) XXX_DiscardUnknown()

func (*VStreamRowsResponse) XXX_Marshal Uses

func (m *VStreamRowsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VStreamRowsResponse) XXX_Merge Uses

func (dst *VStreamRowsResponse) XXX_Merge(src proto.Message)

func (*VStreamRowsResponse) XXX_Size Uses

func (m *VStreamRowsResponse) XXX_Size() int

func (*VStreamRowsResponse) XXX_Unmarshal Uses

func (m *VStreamRowsResponse) XXX_Unmarshal(b []byte) error

Package binlogdata imports 6 packages (graph) and is imported by 28 packages. Updated 2019-06-13. Refresh now. Tools for package owners.