Documentation
¶
Index ¶
- Variables
- type Ack
- func (*Ack) Descriptor() ([]byte, []int)
- func (m *Ack) GetErrorCode() int32
- func (m *Ack) GetErrorCodePresent() isAck_ErrorCodePresent
- func (m *Ack) GetErrorMessage() string
- func (m *Ack) Marshal() (dAtA []byte, err error)
- func (m *Ack) MarshalTo(dAtA []byte) (int, error)
- func (m *Ack) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Ack) ProtoMessage()
- func (m *Ack) Reset()
- func (m *Ack) Size() (n int)
- func (m *Ack) String() string
- func (m *Ack) Unmarshal(dAtA []byte) error
- func (m *Ack) XXX_DiscardUnknown()
- func (m *Ack) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Ack) XXX_Merge(src proto.Message)
- func (*Ack) XXX_OneofWrappers() []interface{}
- func (m *Ack) XXX_Size() int
- func (m *Ack) XXX_Unmarshal(b []byte) error
- type Ack_ErrorCode
- type ClientAck
- func (*ClientAck) Descriptor() ([]byte, []int)
- func (m *ClientAck) GetBatchId() int64
- func (m *ClientAck) GetClientId() string
- func (m *ClientAck) GetDestination() string
- func (m *ClientAck) Marshal() (dAtA []byte, err error)
- func (m *ClientAck) MarshalTo(dAtA []byte) (int, error)
- func (m *ClientAck) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ClientAck) ProtoMessage()
- func (m *ClientAck) Reset()
- func (m *ClientAck) Size() (n int)
- func (m *ClientAck) String() string
- func (m *ClientAck) Unmarshal(dAtA []byte) error
- func (m *ClientAck) XXX_DiscardUnknown()
- func (m *ClientAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientAck) XXX_Merge(src proto.Message)
- func (m *ClientAck) XXX_Size() int
- func (m *ClientAck) XXX_Unmarshal(b []byte) error
- type ClientAuth
- func (*ClientAuth) Descriptor() ([]byte, []int)
- func (m *ClientAuth) GetClientId() string
- func (m *ClientAuth) GetDestination() string
- func (m *ClientAuth) GetFilter() string
- func (m *ClientAuth) GetNetReadTimeout() int32
- func (m *ClientAuth) GetNetReadTimeoutPresent() isClientAuth_NetReadTimeoutPresent
- func (m *ClientAuth) GetNetWriteTimeout() int32
- func (m *ClientAuth) GetNetWriteTimeoutPresent() isClientAuth_NetWriteTimeoutPresent
- func (m *ClientAuth) GetPassword() []byte
- func (m *ClientAuth) GetStartTimestamp() int64
- func (m *ClientAuth) GetUsername() string
- func (m *ClientAuth) Marshal() (dAtA []byte, err error)
- func (m *ClientAuth) MarshalTo(dAtA []byte) (int, error)
- func (m *ClientAuth) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ClientAuth) ProtoMessage()
- func (m *ClientAuth) Reset()
- func (m *ClientAuth) Size() (n int)
- func (m *ClientAuth) String() string
- func (m *ClientAuth) Unmarshal(dAtA []byte) error
- func (m *ClientAuth) XXX_DiscardUnknown()
- func (m *ClientAuth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientAuth) XXX_Merge(src proto.Message)
- func (*ClientAuth) XXX_OneofWrappers() []interface{}
- func (m *ClientAuth) XXX_Size() int
- func (m *ClientAuth) XXX_Unmarshal(b []byte) error
- type ClientAuth_NetReadTimeout
- type ClientAuth_NetWriteTimeout
- type ClientRollback
- func (*ClientRollback) Descriptor() ([]byte, []int)
- func (m *ClientRollback) GetBatchId() int64
- func (m *ClientRollback) GetClientId() string
- func (m *ClientRollback) GetDestination() string
- func (m *ClientRollback) Marshal() (dAtA []byte, err error)
- func (m *ClientRollback) MarshalTo(dAtA []byte) (int, error)
- func (m *ClientRollback) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ClientRollback) ProtoMessage()
- func (m *ClientRollback) Reset()
- func (m *ClientRollback) Size() (n int)
- func (m *ClientRollback) String() string
- func (m *ClientRollback) Unmarshal(dAtA []byte) error
- func (m *ClientRollback) XXX_DiscardUnknown()
- func (m *ClientRollback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientRollback) XXX_Merge(src proto.Message)
- func (m *ClientRollback) XXX_Size() int
- func (m *ClientRollback) XXX_Unmarshal(b []byte) error
- type Compression
- type Dump
- func (*Dump) Descriptor() ([]byte, []int)
- func (m *Dump) GetJournal() string
- func (m *Dump) GetPosition() int64
- func (m *Dump) GetTimestamp() int64
- func (m *Dump) GetTimestampPresent() isDump_TimestampPresent
- func (m *Dump) Marshal() (dAtA []byte, err error)
- func (m *Dump) MarshalTo(dAtA []byte) (int, error)
- func (m *Dump) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Dump) ProtoMessage()
- func (m *Dump) Reset()
- func (m *Dump) Size() (n int)
- func (m *Dump) String() string
- func (m *Dump) Unmarshal(dAtA []byte) error
- func (m *Dump) XXX_DiscardUnknown()
- func (m *Dump) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Dump) XXX_Merge(src proto.Message)
- func (*Dump) XXX_OneofWrappers() []interface{}
- func (m *Dump) XXX_Size() int
- func (m *Dump) XXX_Unmarshal(b []byte) error
- type Dump_Timestamp
- type Get
- func (*Get) Descriptor() ([]byte, []int)
- func (m *Get) GetAutoAck() bool
- func (m *Get) GetAutoAckPresent() isGet_AutoAckPresent
- func (m *Get) GetClientId() string
- func (m *Get) GetDestination() string
- func (m *Get) GetFetchSize() int32
- func (m *Get) GetTimeout() int64
- func (m *Get) GetTimeoutPresent() isGet_TimeoutPresent
- func (m *Get) GetUnit() int32
- func (m *Get) GetUnitPresent() isGet_UnitPresent
- func (m *Get) Marshal() (dAtA []byte, err error)
- func (m *Get) MarshalTo(dAtA []byte) (int, error)
- func (m *Get) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Get) ProtoMessage()
- func (m *Get) Reset()
- func (m *Get) Size() (n int)
- func (m *Get) String() string
- func (m *Get) Unmarshal(dAtA []byte) error
- func (m *Get) XXX_DiscardUnknown()
- func (m *Get) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Get) XXX_Merge(src proto.Message)
- func (*Get) XXX_OneofWrappers() []interface{}
- func (m *Get) XXX_Size() int
- func (m *Get) XXX_Unmarshal(b []byte) error
- type Get_AutoAck
- type Get_Timeout
- type Get_Unit
- type Handshake
- func (*Handshake) Descriptor() ([]byte, []int)
- func (m *Handshake) GetCommunicationEncoding() string
- func (m *Handshake) GetCommunicationEncodingPresent() isHandshake_CommunicationEncodingPresent
- func (m *Handshake) GetSeeds() []byte
- func (m *Handshake) GetSupportedCompressions() Compression
- func (m *Handshake) Marshal() (dAtA []byte, err error)
- func (m *Handshake) MarshalTo(dAtA []byte) (int, error)
- func (m *Handshake) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Handshake) ProtoMessage()
- func (m *Handshake) Reset()
- func (m *Handshake) Size() (n int)
- func (m *Handshake) String() string
- func (m *Handshake) Unmarshal(dAtA []byte) error
- func (m *Handshake) XXX_DiscardUnknown()
- func (m *Handshake) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Handshake) XXX_Merge(src proto.Message)
- func (*Handshake) XXX_OneofWrappers() []interface{}
- func (m *Handshake) XXX_Size() int
- func (m *Handshake) XXX_Unmarshal(b []byte) error
- type Handshake_CommunicationEncoding
- type HeartBeat
- func (*HeartBeat) Descriptor() ([]byte, []int)
- func (m *HeartBeat) GetSendTimestamp() int64
- func (m *HeartBeat) GetStartTimestamp() int64
- func (m *HeartBeat) Marshal() (dAtA []byte, err error)
- func (m *HeartBeat) MarshalTo(dAtA []byte) (int, error)
- func (m *HeartBeat) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HeartBeat) ProtoMessage()
- func (m *HeartBeat) Reset()
- func (m *HeartBeat) Size() (n int)
- func (m *HeartBeat) String() string
- func (m *HeartBeat) Unmarshal(dAtA []byte) error
- func (m *HeartBeat) XXX_DiscardUnknown()
- func (m *HeartBeat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HeartBeat) XXX_Merge(src proto.Message)
- func (m *HeartBeat) XXX_Size() int
- func (m *HeartBeat) XXX_Unmarshal(b []byte) error
- type Messages
- func (*Messages) Descriptor() ([]byte, []int)
- func (m *Messages) GetBatchId() int64
- func (m *Messages) GetMessages() [][]byte
- func (m *Messages) Marshal() (dAtA []byte, err error)
- func (m *Messages) MarshalTo(dAtA []byte) (int, error)
- func (m *Messages) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Messages) ProtoMessage()
- func (m *Messages) Reset()
- func (m *Messages) Size() (n int)
- func (m *Messages) String() string
- func (m *Messages) Unmarshal(dAtA []byte) error
- func (m *Messages) XXX_DiscardUnknown()
- func (m *Messages) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Messages) XXX_Merge(src proto.Message)
- func (m *Messages) XXX_Size() int
- func (m *Messages) XXX_Unmarshal(b []byte) error
- type Packet
- func (*Packet) Descriptor() ([]byte, []int)
- func (m *Packet) GetBody() []byte
- func (m *Packet) GetCompression() Compression
- func (m *Packet) GetCompressionPresent() isPacket_CompressionPresent
- func (m *Packet) GetMagicNumber() int32
- func (m *Packet) GetMagicNumberPresent() isPacket_MagicNumberPresent
- func (m *Packet) GetType() PacketType
- func (m *Packet) GetVersion() int32
- func (m *Packet) GetVersionPresent() isPacket_VersionPresent
- func (m *Packet) Marshal() (dAtA []byte, err error)
- func (m *Packet) MarshalTo(dAtA []byte) (int, error)
- func (m *Packet) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Packet) ProtoMessage()
- func (m *Packet) Reset()
- func (m *Packet) Size() (n int)
- func (m *Packet) String() string
- func (m *Packet) Unmarshal(dAtA []byte) error
- func (m *Packet) XXX_DiscardUnknown()
- func (m *Packet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Packet) XXX_Merge(src proto.Message)
- func (*Packet) XXX_OneofWrappers() []interface{}
- func (m *Packet) XXX_Size() int
- func (m *Packet) XXX_Unmarshal(b []byte) error
- type PacketType
- type Packet_Compression
- type Packet_MagicNumber
- type Packet_Version
- type Sub
- func (*Sub) Descriptor() ([]byte, []int)
- func (m *Sub) GetClientId() string
- func (m *Sub) GetDestination() string
- func (m *Sub) GetFilter() string
- func (m *Sub) Marshal() (dAtA []byte, err error)
- func (m *Sub) MarshalTo(dAtA []byte) (int, error)
- func (m *Sub) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Sub) ProtoMessage()
- func (m *Sub) Reset()
- func (m *Sub) Size() (n int)
- func (m *Sub) String() string
- func (m *Sub) Unmarshal(dAtA []byte) error
- func (m *Sub) XXX_DiscardUnknown()
- func (m *Sub) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Sub) XXX_Merge(src proto.Message)
- func (m *Sub) XXX_Size() int
- func (m *Sub) XXX_Unmarshal(b []byte) error
- type Unsub
- func (*Unsub) Descriptor() ([]byte, []int)
- func (m *Unsub) GetClientId() string
- func (m *Unsub) GetDestination() string
- func (m *Unsub) GetFilter() string
- func (m *Unsub) Marshal() (dAtA []byte, err error)
- func (m *Unsub) MarshalTo(dAtA []byte) (int, error)
- func (m *Unsub) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Unsub) ProtoMessage()
- func (m *Unsub) Reset()
- func (m *Unsub) Size() (n int)
- func (m *Unsub) String() string
- func (m *Unsub) Unmarshal(dAtA []byte) error
- func (m *Unsub) XXX_DiscardUnknown()
- func (m *Unsub) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Unsub) XXX_Merge(src proto.Message)
- func (m *Unsub) XXX_Size() int
- func (m *Unsub) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthCanalProtocol = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCanalProtocol = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupCanalProtocol = fmt.Errorf("proto: unexpected end of group") )
View Source
var Compression_name = map[int32]string{
0: "COMPRESSIONCOMPATIBLEPROTO2",
1: "NONE",
2: "ZLIB",
3: "GZIP",
4: "LZF",
}
View Source
var Compression_value = map[string]int32{
"COMPRESSIONCOMPATIBLEPROTO2": 0,
"NONE": 1,
"ZLIB": 2,
"GZIP": 3,
"LZF": 4,
}
View Source
var PacketType_name = map[int32]string{
0: "PACKAGETYPECOMPATIBLEPROTO2",
1: "HANDSHAKE",
2: "CLIENTAUTHENTICATION",
3: "ACK",
4: "SUBSCRIPTION",
5: "UNSUBSCRIPTION",
6: "GET",
7: "MESSAGES",
8: "CLIENTACK",
9: "SHUTDOWN",
10: "DUMP",
11: "HEARTBEAT",
12: "CLIENTROLLBACK",
}
View Source
var PacketType_value = map[string]int32{
"PACKAGETYPECOMPATIBLEPROTO2": 0,
"HANDSHAKE": 1,
"CLIENTAUTHENTICATION": 2,
"ACK": 3,
"SUBSCRIPTION": 4,
"UNSUBSCRIPTION": 5,
"GET": 6,
"MESSAGES": 7,
"CLIENTACK": 8,
"SHUTDOWN": 9,
"DUMP": 10,
"HEARTBEAT": 11,
"CLIENTROLLBACK": 12,
}
Functions ¶
This section is empty.
Types ¶
type Ack ¶
type Ack struct { //[default = 0] // // Types that are valid to be assigned to ErrorCodePresent: // *Ack_ErrorCode ErrorCodePresent isAck_ErrorCodePresent `protobuf_oneof:"error_code_present"` ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Ack) Descriptor ¶
func (*Ack) GetErrorCode ¶
func (*Ack) GetErrorCodePresent ¶
func (m *Ack) GetErrorCodePresent() isAck_ErrorCodePresent
func (*Ack) GetErrorMessage ¶
func (*Ack) ProtoMessage ¶
func (*Ack) ProtoMessage()
func (*Ack) XXX_DiscardUnknown ¶
func (m *Ack) XXX_DiscardUnknown()
func (*Ack) XXX_OneofWrappers ¶
func (*Ack) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Ack) XXX_Unmarshal ¶
type Ack_ErrorCode ¶
type Ack_ErrorCode struct {
ErrorCode int32 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3,oneof" json:"error_code,omitempty"`
}
func (*Ack_ErrorCode) MarshalToSizedBuffer ¶
func (m *Ack_ErrorCode) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Ack_ErrorCode) Size ¶
func (m *Ack_ErrorCode) Size() (n int)
type ClientAck ¶
type ClientAck struct { Destination string `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` BatchId int64 `protobuf:"varint,3,opt,name=batch_id,json=batchId,proto3" json:"batch_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ClientAck) Descriptor ¶
func (*ClientAck) GetBatchId ¶
func (*ClientAck) GetClientId ¶
func (*ClientAck) GetDestination ¶
func (*ClientAck) MarshalToSizedBuffer ¶
func (*ClientAck) ProtoMessage ¶
func (*ClientAck) ProtoMessage()
func (*ClientAck) XXX_DiscardUnknown ¶
func (m *ClientAck) XXX_DiscardUnknown()
func (*ClientAck) XXX_Marshal ¶
func (*ClientAck) XXX_Unmarshal ¶
type ClientAuth ¶
type ClientAuth struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password []byte `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // [default = 0] // // Types that are valid to be assigned to NetReadTimeoutPresent: // *ClientAuth_NetReadTimeout NetReadTimeoutPresent isClientAuth_NetReadTimeoutPresent `protobuf_oneof:"net_read_timeout_present"` // [default = 0]; // // Types that are valid to be assigned to NetWriteTimeoutPresent: // *ClientAuth_NetWriteTimeout NetWriteTimeoutPresent isClientAuth_NetWriteTimeoutPresent `protobuf_oneof:"net_write_timeout_present"` Destination string `protobuf:"bytes,5,opt,name=destination,proto3" json:"destination,omitempty"` ClientId string `protobuf:"bytes,6,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` Filter string `protobuf:"bytes,7,opt,name=filter,proto3" json:"filter,omitempty"` StartTimestamp int64 `protobuf:"varint,8,opt,name=start_timestamp,json=startTimestamp,proto3" json:"start_timestamp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
client authentication
func (*ClientAuth) Descriptor ¶
func (*ClientAuth) Descriptor() ([]byte, []int)
func (*ClientAuth) GetClientId ¶
func (m *ClientAuth) GetClientId() string
func (*ClientAuth) GetDestination ¶
func (m *ClientAuth) GetDestination() string
func (*ClientAuth) GetFilter ¶
func (m *ClientAuth) GetFilter() string
func (*ClientAuth) GetNetReadTimeout ¶
func (m *ClientAuth) GetNetReadTimeout() int32
func (*ClientAuth) GetNetReadTimeoutPresent ¶
func (m *ClientAuth) GetNetReadTimeoutPresent() isClientAuth_NetReadTimeoutPresent
func (*ClientAuth) GetNetWriteTimeout ¶
func (m *ClientAuth) GetNetWriteTimeout() int32
func (*ClientAuth) GetNetWriteTimeoutPresent ¶
func (m *ClientAuth) GetNetWriteTimeoutPresent() isClientAuth_NetWriteTimeoutPresent
func (*ClientAuth) GetPassword ¶
func (m *ClientAuth) GetPassword() []byte
func (*ClientAuth) GetStartTimestamp ¶
func (m *ClientAuth) GetStartTimestamp() int64
func (*ClientAuth) GetUsername ¶
func (m *ClientAuth) GetUsername() string
func (*ClientAuth) Marshal ¶
func (m *ClientAuth) Marshal() (dAtA []byte, err error)
func (*ClientAuth) MarshalToSizedBuffer ¶
func (m *ClientAuth) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ClientAuth) ProtoMessage ¶
func (*ClientAuth) ProtoMessage()
func (*ClientAuth) Reset ¶
func (m *ClientAuth) Reset()
func (*ClientAuth) Size ¶
func (m *ClientAuth) Size() (n int)
func (*ClientAuth) String ¶
func (m *ClientAuth) String() string
func (*ClientAuth) Unmarshal ¶
func (m *ClientAuth) Unmarshal(dAtA []byte) error
func (*ClientAuth) XXX_DiscardUnknown ¶
func (m *ClientAuth) XXX_DiscardUnknown()
func (*ClientAuth) XXX_Marshal ¶
func (m *ClientAuth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClientAuth) XXX_Merge ¶
func (m *ClientAuth) XXX_Merge(src proto.Message)
func (*ClientAuth) XXX_OneofWrappers ¶
func (*ClientAuth) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*ClientAuth) XXX_Size ¶
func (m *ClientAuth) XXX_Size() int
func (*ClientAuth) XXX_Unmarshal ¶
func (m *ClientAuth) XXX_Unmarshal(b []byte) error
type ClientAuth_NetReadTimeout ¶
type ClientAuth_NetReadTimeout struct {
NetReadTimeout int32 `protobuf:"varint,3,opt,name=net_read_timeout,json=netReadTimeout,proto3,oneof" json:"net_read_timeout,omitempty"`
}
func (*ClientAuth_NetReadTimeout) MarshalTo ¶
func (m *ClientAuth_NetReadTimeout) MarshalTo(dAtA []byte) (int, error)
func (*ClientAuth_NetReadTimeout) MarshalToSizedBuffer ¶
func (m *ClientAuth_NetReadTimeout) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ClientAuth_NetReadTimeout) Size ¶
func (m *ClientAuth_NetReadTimeout) Size() (n int)
type ClientAuth_NetWriteTimeout ¶
type ClientAuth_NetWriteTimeout struct {
NetWriteTimeout int32 `protobuf:"varint,4,opt,name=net_write_timeout,json=netWriteTimeout,proto3,oneof" json:"net_write_timeout,omitempty"`
}
func (*ClientAuth_NetWriteTimeout) MarshalTo ¶
func (m *ClientAuth_NetWriteTimeout) MarshalTo(dAtA []byte) (int, error)
func (*ClientAuth_NetWriteTimeout) MarshalToSizedBuffer ¶
func (m *ClientAuth_NetWriteTimeout) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ClientAuth_NetWriteTimeout) Size ¶
func (m *ClientAuth_NetWriteTimeout) Size() (n int)
type ClientRollback ¶
type ClientRollback struct { Destination string `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` BatchId int64 `protobuf:"varint,3,opt,name=batch_id,json=batchId,proto3" json:"batch_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ClientRollback) Descriptor ¶
func (*ClientRollback) Descriptor() ([]byte, []int)
func (*ClientRollback) GetBatchId ¶
func (m *ClientRollback) GetBatchId() int64
func (*ClientRollback) GetClientId ¶
func (m *ClientRollback) GetClientId() string
func (*ClientRollback) GetDestination ¶
func (m *ClientRollback) GetDestination() string
func (*ClientRollback) Marshal ¶
func (m *ClientRollback) Marshal() (dAtA []byte, err error)
func (*ClientRollback) MarshalToSizedBuffer ¶
func (m *ClientRollback) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ClientRollback) ProtoMessage ¶
func (*ClientRollback) ProtoMessage()
func (*ClientRollback) Reset ¶
func (m *ClientRollback) Reset()
func (*ClientRollback) Size ¶
func (m *ClientRollback) Size() (n int)
func (*ClientRollback) String ¶
func (m *ClientRollback) String() string
func (*ClientRollback) Unmarshal ¶
func (m *ClientRollback) Unmarshal(dAtA []byte) error
func (*ClientRollback) XXX_DiscardUnknown ¶
func (m *ClientRollback) XXX_DiscardUnknown()
func (*ClientRollback) XXX_Marshal ¶
func (m *ClientRollback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClientRollback) XXX_Merge ¶
func (m *ClientRollback) XXX_Merge(src proto.Message)
func (*ClientRollback) XXX_Size ¶
func (m *ClientRollback) XXX_Size() int
func (*ClientRollback) XXX_Unmarshal ¶
func (m *ClientRollback) XXX_Unmarshal(b []byte) error
type Compression ¶
type Compression int32
const ( Compression_COMPRESSIONCOMPATIBLEPROTO2 Compression = 0 Compression_NONE Compression = 1 Compression_ZLIB Compression = 2 Compression_GZIP Compression = 3 Compression_LZF Compression = 4 )
func (Compression) EnumDescriptor ¶
func (Compression) EnumDescriptor() ([]byte, []int)
func (Compression) String ¶
func (x Compression) String() string
type Dump ¶
type Dump struct { Journal string `protobuf:"bytes,1,opt,name=journal,proto3" json:"journal,omitempty"` Position int64 `protobuf:"varint,2,opt,name=position,proto3" json:"position,omitempty"` // [default = 0] // // Types that are valid to be assigned to TimestampPresent: // *Dump_Timestamp TimestampPresent isDump_TimestampPresent `protobuf_oneof:"timestamp_present"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
TBD when new packets are required
func (*Dump) Descriptor ¶
func (*Dump) GetJournal ¶
func (*Dump) GetPosition ¶
func (*Dump) GetTimestamp ¶
func (*Dump) GetTimestampPresent ¶
func (m *Dump) GetTimestampPresent() isDump_TimestampPresent
func (*Dump) ProtoMessage ¶
func (*Dump) ProtoMessage()
func (*Dump) XXX_DiscardUnknown ¶
func (m *Dump) XXX_DiscardUnknown()
func (*Dump) XXX_OneofWrappers ¶
func (*Dump) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Dump) XXX_Unmarshal ¶
type Dump_Timestamp ¶
type Dump_Timestamp struct {
Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3,oneof" json:"timestamp,omitempty"`
}
func (*Dump_Timestamp) MarshalToSizedBuffer ¶
func (m *Dump_Timestamp) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Dump_Timestamp) Size ¶
func (m *Dump_Timestamp) Size() (n int)
type Get ¶
type Get struct { Destination string `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` FetchSize int32 `protobuf:"varint,3,opt,name=fetch_size,json=fetchSize,proto3" json:"fetch_size,omitempty"` //[default = -1] // // Types that are valid to be assigned to TimeoutPresent: // *Get_Timeout TimeoutPresent isGet_TimeoutPresent `protobuf_oneof:"timeout_present"` //[default = 2] // // Types that are valid to be assigned to UnitPresent: // *Get_Unit UnitPresent isGet_UnitPresent `protobuf_oneof:"unit_present"` //[default = false] // // Types that are valid to be assigned to AutoAckPresent: // *Get_AutoAck AutoAckPresent isGet_AutoAckPresent `protobuf_oneof:"auto_ack_present"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
PullRequest
func (*Get) Descriptor ¶
func (*Get) GetAutoAck ¶
func (*Get) GetAutoAckPresent ¶
func (m *Get) GetAutoAckPresent() isGet_AutoAckPresent
func (*Get) GetClientId ¶
func (*Get) GetDestination ¶
func (*Get) GetFetchSize ¶
func (*Get) GetTimeout ¶
func (*Get) GetTimeoutPresent ¶
func (m *Get) GetTimeoutPresent() isGet_TimeoutPresent
func (*Get) GetUnitPresent ¶
func (m *Get) GetUnitPresent() isGet_UnitPresent
func (*Get) ProtoMessage ¶
func (*Get) ProtoMessage()
func (*Get) XXX_DiscardUnknown ¶
func (m *Get) XXX_DiscardUnknown()
func (*Get) XXX_OneofWrappers ¶
func (*Get) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Get) XXX_Unmarshal ¶
type Get_AutoAck ¶
type Get_AutoAck struct {
AutoAck bool `protobuf:"varint,6,opt,name=auto_ack,json=autoAck,proto3,oneof" json:"auto_ack,omitempty"`
}
func (*Get_AutoAck) MarshalToSizedBuffer ¶
func (m *Get_AutoAck) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Get_AutoAck) Size ¶
func (m *Get_AutoAck) Size() (n int)
type Get_Timeout ¶
type Get_Timeout struct {
Timeout int64 `protobuf:"varint,4,opt,name=timeout,proto3,oneof" json:"timeout,omitempty"`
}
func (*Get_Timeout) MarshalToSizedBuffer ¶
func (m *Get_Timeout) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Get_Timeout) Size ¶
func (m *Get_Timeout) Size() (n int)
type Get_Unit ¶
type Get_Unit struct {
Unit int32 `protobuf:"varint,5,opt,name=unit,proto3,oneof" json:"unit,omitempty"`
}
func (*Get_Unit) MarshalToSizedBuffer ¶
type Handshake ¶
type Handshake struct { // [default = "utf8"]; // // Types that are valid to be assigned to CommunicationEncodingPresent: // *Handshake_CommunicationEncoding CommunicationEncodingPresent isHandshake_CommunicationEncodingPresent `protobuf_oneof:"communication_encoding_present"` Seeds []byte `protobuf:"bytes,2,opt,name=seeds,proto3" json:"seeds,omitempty"` SupportedCompressions Compression `` /* 182-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Handshake) Descriptor ¶
func (*Handshake) GetCommunicationEncoding ¶
func (*Handshake) GetCommunicationEncodingPresent ¶
func (m *Handshake) GetCommunicationEncodingPresent() isHandshake_CommunicationEncodingPresent
func (*Handshake) GetSupportedCompressions ¶
func (m *Handshake) GetSupportedCompressions() Compression
func (*Handshake) MarshalToSizedBuffer ¶
func (*Handshake) ProtoMessage ¶
func (*Handshake) ProtoMessage()
func (*Handshake) XXX_DiscardUnknown ¶
func (m *Handshake) XXX_DiscardUnknown()
func (*Handshake) XXX_Marshal ¶
func (*Handshake) XXX_OneofWrappers ¶
func (*Handshake) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Handshake) XXX_Unmarshal ¶
type Handshake_CommunicationEncoding ¶
type Handshake_CommunicationEncoding struct {
CommunicationEncoding string `` /* 130-byte string literal not displayed */
}
func (*Handshake_CommunicationEncoding) MarshalTo ¶
func (m *Handshake_CommunicationEncoding) MarshalTo(dAtA []byte) (int, error)
func (*Handshake_CommunicationEncoding) MarshalToSizedBuffer ¶
func (m *Handshake_CommunicationEncoding) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Handshake_CommunicationEncoding) Size ¶
func (m *Handshake_CommunicationEncoding) Size() (n int)
type HeartBeat ¶
type HeartBeat struct { SendTimestamp int64 `protobuf:"varint,1,opt,name=send_timestamp,json=sendTimestamp,proto3" json:"send_timestamp,omitempty"` StartTimestamp int64 `protobuf:"varint,2,opt,name=start_timestamp,json=startTimestamp,proto3" json:"start_timestamp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HeartBeat) Descriptor ¶
func (*HeartBeat) GetSendTimestamp ¶
func (*HeartBeat) GetStartTimestamp ¶
func (*HeartBeat) MarshalToSizedBuffer ¶
func (*HeartBeat) ProtoMessage ¶
func (*HeartBeat) ProtoMessage()
func (*HeartBeat) XXX_DiscardUnknown ¶
func (m *HeartBeat) XXX_DiscardUnknown()
func (*HeartBeat) XXX_Marshal ¶
func (*HeartBeat) XXX_Unmarshal ¶
type Messages ¶
type Messages struct { BatchId int64 `protobuf:"varint,1,opt,name=batch_id,json=batchId,proto3" json:"batch_id,omitempty"` Messages [][]byte `protobuf:"bytes,2,rep,name=messages,proto3" json:"messages,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Messages) Descriptor ¶
func (*Messages) GetBatchId ¶
func (*Messages) GetMessages ¶
func (*Messages) MarshalToSizedBuffer ¶
func (*Messages) ProtoMessage ¶
func (*Messages) ProtoMessage()
func (*Messages) XXX_DiscardUnknown ¶
func (m *Messages) XXX_DiscardUnknown()
func (*Messages) XXX_Marshal ¶
func (*Messages) XXX_Unmarshal ¶
type Packet ¶
type Packet struct { //[default = 17]; // // Types that are valid to be assigned to MagicNumberPresent: // *Packet_MagicNumber MagicNumberPresent isPacket_MagicNumberPresent `protobuf_oneof:"magic_number_present"` //[default = 1]; // // Types that are valid to be assigned to VersionPresent: // *Packet_Version VersionPresent isPacket_VersionPresent `protobuf_oneof:"version_present"` Type PacketType `protobuf:"varint,3,opt,name=type,proto3,enum=com.alibaba.otter.canal.protocol.packet.PacketType" json:"type,omitempty"` //[default = NONE]; // // Types that are valid to be assigned to CompressionPresent: // *Packet_Compression CompressionPresent isPacket_CompressionPresent `protobuf_oneof:"compression_present"` Body []byte `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Packet) Descriptor ¶
func (*Packet) GetCompression ¶
func (m *Packet) GetCompression() Compression
func (*Packet) GetCompressionPresent ¶
func (m *Packet) GetCompressionPresent() isPacket_CompressionPresent
func (*Packet) GetMagicNumber ¶
func (*Packet) GetMagicNumberPresent ¶
func (m *Packet) GetMagicNumberPresent() isPacket_MagicNumberPresent
func (*Packet) GetType ¶
func (m *Packet) GetType() PacketType
func (*Packet) GetVersion ¶
func (*Packet) GetVersionPresent ¶
func (m *Packet) GetVersionPresent() isPacket_VersionPresent
func (*Packet) MarshalToSizedBuffer ¶
func (*Packet) ProtoMessage ¶
func (*Packet) ProtoMessage()
func (*Packet) XXX_DiscardUnknown ¶
func (m *Packet) XXX_DiscardUnknown()
func (*Packet) XXX_Marshal ¶
func (*Packet) XXX_OneofWrappers ¶
func (*Packet) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Packet) XXX_Unmarshal ¶
type PacketType ¶
type PacketType int32
const ( //compatible PacketType_PACKAGETYPECOMPATIBLEPROTO2 PacketType = 0 PacketType_HANDSHAKE PacketType = 1 PacketType_CLIENTAUTHENTICATION PacketType = 2 PacketType_ACK PacketType = 3 PacketType_SUBSCRIPTION PacketType = 4 PacketType_UNSUBSCRIPTION PacketType = 5 PacketType_GET PacketType = 6 PacketType_MESSAGES PacketType = 7 PacketType_CLIENTACK PacketType = 8 // management part PacketType_SHUTDOWN PacketType = 9 // integration PacketType_DUMP PacketType = 10 PacketType_HEARTBEAT PacketType = 11 PacketType_CLIENTROLLBACK PacketType = 12 )
func (PacketType) EnumDescriptor ¶
func (PacketType) EnumDescriptor() ([]byte, []int)
func (PacketType) String ¶
func (x PacketType) String() string
type Packet_Compression ¶
type Packet_Compression struct {
Compression Compression `` /* 139-byte string literal not displayed */
}
func (*Packet_Compression) MarshalTo ¶
func (m *Packet_Compression) MarshalTo(dAtA []byte) (int, error)
func (*Packet_Compression) MarshalToSizedBuffer ¶
func (m *Packet_Compression) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Packet_Compression) Size ¶
func (m *Packet_Compression) Size() (n int)
type Packet_MagicNumber ¶
type Packet_MagicNumber struct {
MagicNumber int32 `protobuf:"varint,1,opt,name=magic_number,json=magicNumber,proto3,oneof" json:"magic_number,omitempty"`
}
func (*Packet_MagicNumber) MarshalTo ¶
func (m *Packet_MagicNumber) MarshalTo(dAtA []byte) (int, error)
func (*Packet_MagicNumber) MarshalToSizedBuffer ¶
func (m *Packet_MagicNumber) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Packet_MagicNumber) Size ¶
func (m *Packet_MagicNumber) Size() (n int)
type Packet_Version ¶
type Packet_Version struct {
Version int32 `protobuf:"varint,2,opt,name=version,proto3,oneof" json:"version,omitempty"`
}
func (*Packet_Version) MarshalToSizedBuffer ¶
func (m *Packet_Version) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Packet_Version) Size ¶
func (m *Packet_Version) Size() (n int)
type Sub ¶
type Sub struct { Destination string `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` Filter string `protobuf:"bytes,7,opt,name=filter,proto3" json:"filter,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
subscription
func (*Sub) Descriptor ¶
func (*Sub) GetClientId ¶
func (*Sub) GetDestination ¶
func (*Sub) ProtoMessage ¶
func (*Sub) ProtoMessage()
func (*Sub) XXX_DiscardUnknown ¶
func (m *Sub) XXX_DiscardUnknown()
func (*Sub) XXX_Unmarshal ¶
type Unsub ¶
type Unsub struct { Destination string `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` Filter string `protobuf:"bytes,7,opt,name=filter,proto3" json:"filter,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Unsubscription
func (*Unsub) Descriptor ¶
func (*Unsub) GetClientId ¶
func (*Unsub) GetDestination ¶
func (*Unsub) ProtoMessage ¶
func (*Unsub) ProtoMessage()
func (*Unsub) XXX_DiscardUnknown ¶
func (m *Unsub) XXX_DiscardUnknown()
func (*Unsub) XXX_Marshal ¶
func (*Unsub) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.