Documentation
¶
Overview ¶
Copyright 2025 The Cockroach Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Variables
- type Array
- func (*Array) Descriptor() ([]byte, []int)
- func (m *Array) Marshal() (dAtA []byte, err error)
- func (m *Array) MarshalTo(dAtA []byte) (int, error)
- func (m *Array) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Array) ProtoMessage()
- func (m *Array) Reset()
- func (m *Array) Size() (n int)
- func (m *Array) String() string
- func (m *Array) Unmarshal(dAtA []byte) error
- func (m *Array) XXX_DiscardUnknown()
- func (m *Array) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Array) XXX_Merge(src proto.Message)
- func (m *Array) XXX_Size() int
- func (m *Array) XXX_Unmarshal(b []byte) error
- type BareEnvelope
- func (*BareEnvelope) Descriptor() ([]byte, []int)
- func (m *BareEnvelope) Marshal() (dAtA []byte, err error)
- func (m *BareEnvelope) MarshalTo(dAtA []byte) (int, error)
- func (m *BareEnvelope) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BareEnvelope) ProtoMessage()
- func (m *BareEnvelope) Reset()
- func (m *BareEnvelope) Size() (n int)
- func (m *BareEnvelope) String() string
- func (m *BareEnvelope) Unmarshal(dAtA []byte) error
- func (m *BareEnvelope) XXX_DiscardUnknown()
- func (m *BareEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BareEnvelope) XXX_Merge(src proto.Message)
- func (m *BareEnvelope) XXX_Size() int
- func (m *BareEnvelope) XXX_Unmarshal(b []byte) error
- type BareResolved
- func (*BareResolved) Descriptor() ([]byte, []int)
- func (m *BareResolved) Marshal() (dAtA []byte, err error)
- func (m *BareResolved) MarshalTo(dAtA []byte) (int, error)
- func (m *BareResolved) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BareResolved) ProtoMessage()
- func (m *BareResolved) Reset()
- func (m *BareResolved) Size() (n int)
- func (m *BareResolved) String() string
- func (m *BareResolved) Unmarshal(dAtA []byte) error
- func (m *BareResolved) XXX_DiscardUnknown()
- func (m *BareResolved) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BareResolved) XXX_Merge(src proto.Message)
- func (m *BareResolved) XXX_Size() int
- func (m *BareResolved) XXX_Unmarshal(b []byte) error
- type Decimal
- func (*Decimal) Descriptor() ([]byte, []int)
- func (m *Decimal) Marshal() (dAtA []byte, err error)
- func (m *Decimal) MarshalTo(dAtA []byte) (int, error)
- func (m *Decimal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Decimal) ProtoMessage()
- func (m *Decimal) Reset()
- func (m *Decimal) Size() (n int)
- func (m *Decimal) String() string
- func (m *Decimal) Unmarshal(dAtA []byte) error
- func (m *Decimal) XXX_DiscardUnknown()
- func (m *Decimal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Decimal) XXX_Merge(src proto.Message)
- func (m *Decimal) XXX_Size() int
- func (m *Decimal) XXX_Unmarshal(b []byte) error
- type EnrichedEnvelope
- func (*EnrichedEnvelope) Descriptor() ([]byte, []int)
- func (m *EnrichedEnvelope) Marshal() (dAtA []byte, err error)
- func (m *EnrichedEnvelope) MarshalTo(dAtA []byte) (int, error)
- func (m *EnrichedEnvelope) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EnrichedEnvelope) ProtoMessage()
- func (m *EnrichedEnvelope) Reset()
- func (m *EnrichedEnvelope) Size() (n int)
- func (m *EnrichedEnvelope) String() string
- func (m *EnrichedEnvelope) Unmarshal(dAtA []byte) error
- func (m *EnrichedEnvelope) XXX_DiscardUnknown()
- func (m *EnrichedEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EnrichedEnvelope) XXX_Merge(src proto.Message)
- func (m *EnrichedEnvelope) XXX_Size() int
- func (m *EnrichedEnvelope) XXX_Unmarshal(b []byte) error
- type EnrichedSource
- func (*EnrichedSource) Descriptor() ([]byte, []int)
- func (m *EnrichedSource) Marshal() (dAtA []byte, err error)
- func (m *EnrichedSource) MarshalTo(dAtA []byte) (int, error)
- func (m *EnrichedSource) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EnrichedSource) ProtoMessage()
- func (m *EnrichedSource) Reset()
- func (m *EnrichedSource) Size() (n int)
- func (m *EnrichedSource) String() string
- func (m *EnrichedSource) Unmarshal(dAtA []byte) error
- func (m *EnrichedSource) XXX_DiscardUnknown()
- func (m *EnrichedSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EnrichedSource) XXX_Merge(src proto.Message)
- func (m *EnrichedSource) XXX_Size() int
- func (m *EnrichedSource) XXX_Unmarshal(b []byte) error
- type Key
- func (*Key) Descriptor() ([]byte, []int)
- func (m *Key) Marshal() (dAtA []byte, err error)
- func (k *Key) MarshalJSON() ([]byte, error)
- func (m *Key) MarshalTo(dAtA []byte) (int, error)
- func (m *Key) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Key) ProtoMessage()
- func (m *Key) Reset()
- func (m *Key) Size() (n int)
- func (m *Key) String() string
- func (m *Key) Unmarshal(dAtA []byte) error
- func (m *Key) XXX_DiscardUnknown()
- func (m *Key) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Key) XXX_Merge(src proto.Message)
- func (m *Key) XXX_Size() int
- func (m *Key) XXX_Unmarshal(b []byte) error
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) GetBare() *BareEnvelope
- func (m *Message) GetBareResolved() *BareResolved
- func (m *Message) GetData() isMessage_Data
- func (m *Message) GetEnriched() *EnrichedEnvelope
- func (m *Message) GetResolved() *Resolved
- func (m *Message) GetWrapped() *WrappedEnvelope
- func (m *Message) Marshal() (dAtA []byte, err error)
- func (m *Message) MarshalTo(dAtA []byte) (int, error)
- func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) Size() (n int)
- func (m *Message) String() string
- func (m *Message) Unmarshal(dAtA []byte) error
- func (m *Message) XXX_DiscardUnknown()
- func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Message) XXX_Merge(src proto.Message)
- func (*Message) XXX_OneofWrappers() []interface{}
- func (m *Message) XXX_Size() int
- func (m *Message) XXX_Unmarshal(b []byte) error
- type MessageBatch
- func (*MessageBatch) Descriptor() ([]byte, []int)
- func (m *MessageBatch) Marshal() (dAtA []byte, err error)
- func (m *MessageBatch) MarshalTo(dAtA []byte) (int, error)
- func (m *MessageBatch) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MessageBatch) ProtoMessage()
- func (m *MessageBatch) Reset()
- func (m *MessageBatch) Size() (n int)
- func (m *MessageBatch) String() string
- func (m *MessageBatch) Unmarshal(dAtA []byte) error
- func (m *MessageBatch) XXX_DiscardUnknown()
- func (m *MessageBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MessageBatch) XXX_Merge(src proto.Message)
- func (m *MessageBatch) XXX_Size() int
- func (m *MessageBatch) XXX_Unmarshal(b []byte) error
- type Message_Bare
- type Message_BareResolved
- type Message_Enriched
- type Message_Resolved
- type Message_Wrapped
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)
- func (m *Metadata) Marshal() (dAtA []byte, err error)
- func (m *Metadata) MarshalTo(dAtA []byte) (int, error)
- func (m *Metadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Metadata) ProtoMessage()
- func (m *Metadata) Reset()
- func (m *Metadata) Size() (n int)
- func (m *Metadata) String() string
- func (m *Metadata) Unmarshal(dAtA []byte) error
- func (m *Metadata) XXX_DiscardUnknown()
- func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Metadata) XXX_Merge(src proto.Message)
- func (m *Metadata) XXX_Size() int
- func (m *Metadata) XXX_Unmarshal(b []byte) error
- type Op
- type Record
- func (*Record) Descriptor() ([]byte, []int)
- func (m *Record) Marshal() (dAtA []byte, err error)
- func (m *Record) MarshalTo(dAtA []byte) (int, error)
- func (m *Record) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Record) ProtoMessage()
- func (m *Record) Reset()
- func (m *Record) Size() (n int)
- func (m *Record) String() string
- func (m *Record) Unmarshal(dAtA []byte) error
- func (m *Record) XXX_DiscardUnknown()
- func (m *Record) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Record) XXX_Merge(src proto.Message)
- func (m *Record) XXX_Size() int
- func (m *Record) XXX_Unmarshal(b []byte) error
- type Resolved
- func (*Resolved) Descriptor() ([]byte, []int)
- func (m *Resolved) Marshal() (dAtA []byte, err error)
- func (m *Resolved) MarshalTo(dAtA []byte) (int, error)
- func (m *Resolved) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Resolved) ProtoMessage()
- func (m *Resolved) Reset()
- func (m *Resolved) Size() (n int)
- func (m *Resolved) String() string
- func (m *Resolved) Unmarshal(dAtA []byte) error
- func (m *Resolved) XXX_DiscardUnknown()
- func (m *Resolved) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Resolved) XXX_Merge(src proto.Message)
- func (m *Resolved) XXX_Size() int
- func (m *Resolved) XXX_Unmarshal(b []byte) error
- type Value
- func (*Value) Descriptor() ([]byte, []int)
- func (m *Value) GetArrayValue() *Array
- func (m *Value) GetBoolValue() bool
- func (m *Value) GetBytesValue() []byte
- func (m *Value) GetDateValue() string
- func (m *Value) GetDecimalValue() *Decimal
- func (m *Value) GetDoubleValue() float64
- func (m *Value) GetFloatValue() float32
- func (m *Value) GetInt32Value() int32
- func (m *Value) GetInt64Value() int64
- func (m *Value) GetIntervalValue() string
- func (m *Value) GetStringValue() string
- func (m *Value) GetTimeValue() string
- func (m *Value) GetTimestampValue() *types.Timestamp
- func (m *Value) GetTupleValue() *Record
- func (m *Value) GetUuidValue() string
- func (m *Value) GetValue() isValue_Value
- func (m *Value) Marshal() (dAtA []byte, err error)
- func (v *Value) MarshalJSON() ([]byte, error)
- func (m *Value) MarshalTo(dAtA []byte) (int, error)
- func (m *Value) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Value) ProtoMessage()
- func (m *Value) Reset()
- func (m *Value) Size() (n int)
- func (m *Value) String() string
- func (m *Value) Unmarshal(dAtA []byte) error
- func (m *Value) XXX_DiscardUnknown()
- func (m *Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Value) XXX_Merge(src proto.Message)
- func (*Value) XXX_OneofWrappers() []interface{}
- func (m *Value) XXX_Size() int
- func (m *Value) XXX_Unmarshal(b []byte) error
- type Value_ArrayValue
- type Value_BoolValue
- type Value_BytesValue
- type Value_DateValue
- type Value_DecimalValue
- type Value_DoubleValue
- type Value_FloatValue
- type Value_Int32Value
- type Value_Int64Value
- type Value_IntervalValue
- type Value_StringValue
- type Value_TimeValue
- type Value_TimestampValue
- type Value_TupleValue
- type Value_UuidValue
- type WrappedEnvelope
- func (*WrappedEnvelope) Descriptor() ([]byte, []int)
- func (m *WrappedEnvelope) Marshal() (dAtA []byte, err error)
- func (m *WrappedEnvelope) MarshalTo(dAtA []byte) (int, error)
- func (m *WrappedEnvelope) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*WrappedEnvelope) ProtoMessage()
- func (m *WrappedEnvelope) Reset()
- func (m *WrappedEnvelope) Size() (n int)
- func (m *WrappedEnvelope) String() string
- func (m *WrappedEnvelope) Unmarshal(dAtA []byte) error
- func (m *WrappedEnvelope) XXX_DiscardUnknown()
- func (m *WrappedEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WrappedEnvelope) XXX_Merge(src proto.Message)
- func (m *WrappedEnvelope) XXX_Size() int
- func (m *WrappedEnvelope) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthChangefeed = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowChangefeed = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupChangefeed = fmt.Errorf("proto: unexpected end of group") )
var Op_name = map[int32]string{
0: "OP_UNSPECIFIED",
1: "OP_CREATE",
2: "OP_UPDATE",
3: "OP_DELETE",
}
var Op_value = map[string]int32{
"OP_UNSPECIFIED": 0,
"OP_CREATE": 1,
"OP_UPDATE": 2,
"OP_DELETE": 3,
}
Functions ¶
This section is empty.
Types ¶
type Array ¶
type Array struct {
Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
}
Array represents an ordered list of values.
func (*Array) Descriptor ¶
func (*Array) ProtoMessage ¶
func (*Array) ProtoMessage()
func (*Array) XXX_DiscardUnknown ¶
func (m *Array) XXX_DiscardUnknown()
func (*Array) XXX_Marshal ¶
func (*Array) XXX_Unmarshal ¶
type BareEnvelope ¶
type BareEnvelope struct {
Values map[string]*Value `` /* 153-byte string literal not displayed */
XCrdb__ *Metadata `protobuf:"bytes,2,opt,name=__crdb__,json=Crdb,proto3" json:"__crdb__,omitempty"`
}
BareEnvelope contains change data as a flat map along with CockroachDB-specific metadata under the '__crdb__' field.
func (*BareEnvelope) Descriptor ¶
func (*BareEnvelope) Descriptor() ([]byte, []int)
func (*BareEnvelope) Marshal ¶
func (m *BareEnvelope) Marshal() (dAtA []byte, err error)
func (*BareEnvelope) MarshalToSizedBuffer ¶
func (m *BareEnvelope) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BareEnvelope) ProtoMessage ¶
func (*BareEnvelope) ProtoMessage()
func (*BareEnvelope) Reset ¶
func (m *BareEnvelope) Reset()
func (*BareEnvelope) Size ¶
func (m *BareEnvelope) Size() (n int)
func (*BareEnvelope) String ¶
func (m *BareEnvelope) String() string
func (*BareEnvelope) Unmarshal ¶
func (m *BareEnvelope) Unmarshal(dAtA []byte) error
func (*BareEnvelope) XXX_DiscardUnknown ¶
func (m *BareEnvelope) XXX_DiscardUnknown()
func (*BareEnvelope) XXX_Marshal ¶
func (m *BareEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BareEnvelope) XXX_Merge ¶
func (m *BareEnvelope) XXX_Merge(src proto.Message)
func (*BareEnvelope) XXX_Size ¶
func (m *BareEnvelope) XXX_Size() int
func (*BareEnvelope) XXX_Unmarshal ¶
func (m *BareEnvelope) XXX_Unmarshal(b []byte) error
type BareResolved ¶
type BareResolved struct {
XCrdb__ *Resolved `protobuf:"bytes,1,opt,name=__crdb__,json=Crdb,proto3" json:"__crdb__,omitempty"`
}
BareResolved is a minimal envelope that wraps a resolved timestamp in a '__crdb__' field.
func (*BareResolved) Descriptor ¶
func (*BareResolved) Descriptor() ([]byte, []int)
func (*BareResolved) Marshal ¶
func (m *BareResolved) Marshal() (dAtA []byte, err error)
func (*BareResolved) MarshalToSizedBuffer ¶
func (m *BareResolved) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BareResolved) ProtoMessage ¶
func (*BareResolved) ProtoMessage()
func (*BareResolved) Reset ¶
func (m *BareResolved) Reset()
func (*BareResolved) Size ¶
func (m *BareResolved) Size() (n int)
func (*BareResolved) String ¶
func (m *BareResolved) String() string
func (*BareResolved) Unmarshal ¶
func (m *BareResolved) Unmarshal(dAtA []byte) error
func (*BareResolved) XXX_DiscardUnknown ¶
func (m *BareResolved) XXX_DiscardUnknown()
func (*BareResolved) XXX_Marshal ¶
func (m *BareResolved) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BareResolved) XXX_Merge ¶
func (m *BareResolved) XXX_Merge(src proto.Message)
func (*BareResolved) XXX_Size ¶
func (m *BareResolved) XXX_Size() int
func (*BareResolved) XXX_Unmarshal ¶
func (m *BareResolved) XXX_Unmarshal(b []byte) error
type Decimal ¶
type Decimal struct {
Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
}
Decimal contains a fixed-point decimal value represented as a string.
func (*Decimal) Descriptor ¶
func (*Decimal) MarshalToSizedBuffer ¶
func (*Decimal) ProtoMessage ¶
func (*Decimal) ProtoMessage()
func (*Decimal) XXX_DiscardUnknown ¶
func (m *Decimal) XXX_DiscardUnknown()
func (*Decimal) XXX_Marshal ¶
func (*Decimal) XXX_Unmarshal ¶
type EnrichedEnvelope ¶
type EnrichedEnvelope struct {
After *Record `protobuf:"bytes,1,opt,name=after,proto3" json:"after,omitempty"`
Before *Record `protobuf:"bytes,2,opt,name=before,proto3" json:"before,omitempty"`
Op Op `protobuf:"varint,3,opt,name=op,proto3,enum=changefeedpb.Op" json:"op,omitempty"`
Key *Key `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"`
TsNs int64 `protobuf:"varint,5,opt,name=ts_ns,json=tsNs,proto3" json:"ts_ns,omitempty"`
Source *EnrichedSource `protobuf:"bytes,6,opt,name=source,proto3" json:"source,omitempty"`
}
EnrichedEnvelope includes detailed context about the change event and source.
func (*EnrichedEnvelope) Descriptor ¶
func (*EnrichedEnvelope) Descriptor() ([]byte, []int)
func (*EnrichedEnvelope) Marshal ¶
func (m *EnrichedEnvelope) Marshal() (dAtA []byte, err error)
func (*EnrichedEnvelope) MarshalToSizedBuffer ¶
func (m *EnrichedEnvelope) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EnrichedEnvelope) ProtoMessage ¶
func (*EnrichedEnvelope) ProtoMessage()
func (*EnrichedEnvelope) Reset ¶
func (m *EnrichedEnvelope) Reset()
func (*EnrichedEnvelope) Size ¶
func (m *EnrichedEnvelope) Size() (n int)
func (*EnrichedEnvelope) String ¶
func (m *EnrichedEnvelope) String() string
func (*EnrichedEnvelope) Unmarshal ¶
func (m *EnrichedEnvelope) Unmarshal(dAtA []byte) error
func (*EnrichedEnvelope) XXX_DiscardUnknown ¶
func (m *EnrichedEnvelope) XXX_DiscardUnknown()
func (*EnrichedEnvelope) XXX_Marshal ¶
func (m *EnrichedEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EnrichedEnvelope) XXX_Merge ¶
func (m *EnrichedEnvelope) XXX_Merge(src proto.Message)
func (*EnrichedEnvelope) XXX_Size ¶
func (m *EnrichedEnvelope) XXX_Size() int
func (*EnrichedEnvelope) XXX_Unmarshal ¶
func (m *EnrichedEnvelope) XXX_Unmarshal(b []byte) error
type EnrichedSource ¶
type EnrichedSource struct {
JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"`
ChangefeedSink string `protobuf:"bytes,2,opt,name=changefeed_sink,json=changefeedSink,proto3" json:"changefeed_sink,omitempty"`
DbVersion string `protobuf:"bytes,3,opt,name=db_version,json=dbVersion,proto3" json:"db_version,omitempty"`
ClusterName string `protobuf:"bytes,4,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"`
ClusterId string `protobuf:"bytes,5,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
SourceNodeLocality string `protobuf:"bytes,6,opt,name=source_node_locality,json=sourceNodeLocality,proto3" json:"source_node_locality,omitempty"`
NodeName string `protobuf:"bytes,7,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"`
NodeId string `protobuf:"bytes,8,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
MvccTimestamp string `protobuf:"bytes,9,opt,name=mvcc_timestamp,json=mvccTimestamp,proto3" json:"mvcc_timestamp,omitempty"`
TsNs int64 `protobuf:"varint,10,opt,name=ts_ns,json=tsNs,proto3" json:"ts_ns,omitempty"`
TsHlc string `protobuf:"bytes,11,opt,name=ts_hlc,json=tsHlc,proto3" json:"ts_hlc,omitempty"`
Origin string `protobuf:"bytes,12,opt,name=origin,proto3" json:"origin,omitempty"`
DatabaseName string `protobuf:"bytes,13,opt,name=database_name,json=databaseName,proto3" json:"database_name,omitempty"`
SchemaName string `protobuf:"bytes,14,opt,name=schema_name,json=schemaName,proto3" json:"schema_name,omitempty"`
TableName string `protobuf:"bytes,15,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"`
PrimaryKeys []string `protobuf:"bytes,16,rep,name=primary_keys,json=primaryKeys,proto3" json:"primary_keys,omitempty"`
}
EnrichedSource records information about the origin and context of a change event, for operational traceability.
func (*EnrichedSource) Descriptor ¶
func (*EnrichedSource) Descriptor() ([]byte, []int)
func (*EnrichedSource) Marshal ¶
func (m *EnrichedSource) Marshal() (dAtA []byte, err error)
func (*EnrichedSource) MarshalToSizedBuffer ¶
func (m *EnrichedSource) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EnrichedSource) ProtoMessage ¶
func (*EnrichedSource) ProtoMessage()
func (*EnrichedSource) Reset ¶
func (m *EnrichedSource) Reset()
func (*EnrichedSource) Size ¶
func (m *EnrichedSource) Size() (n int)
func (*EnrichedSource) String ¶
func (m *EnrichedSource) String() string
func (*EnrichedSource) Unmarshal ¶
func (m *EnrichedSource) Unmarshal(dAtA []byte) error
func (*EnrichedSource) XXX_DiscardUnknown ¶
func (m *EnrichedSource) XXX_DiscardUnknown()
func (*EnrichedSource) XXX_Marshal ¶
func (m *EnrichedSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EnrichedSource) XXX_Merge ¶
func (m *EnrichedSource) XXX_Merge(src proto.Message)
func (*EnrichedSource) XXX_Size ¶
func (m *EnrichedSource) XXX_Size() int
func (*EnrichedSource) XXX_Unmarshal ¶
func (m *EnrichedSource) XXX_Unmarshal(b []byte) error
type Key ¶
Key contains the primary key values for a row.
func (*Key) Descriptor ¶
func (*Key) MarshalJSON ¶
func (*Key) ProtoMessage ¶
func (*Key) ProtoMessage()
func (*Key) XXX_DiscardUnknown ¶
func (m *Key) XXX_DiscardUnknown()
func (*Key) XXX_Unmarshal ¶
type Message ¶
type Message struct {
// Types that are valid to be assigned to Data:
// *Message_Wrapped
// *Message_Bare
// *Message_Enriched
// *Message_Resolved
// *Message_BareResolved
Data isMessage_Data `protobuf_oneof:"data"`
}
Message is an enum of the different envelope types. This is what will be emitted to the client.
func (*Message) Descriptor ¶
func (*Message) GetBare ¶
func (m *Message) GetBare() *BareEnvelope
func (*Message) GetBareResolved ¶
func (m *Message) GetBareResolved() *BareResolved
func (*Message) GetEnriched ¶
func (m *Message) GetEnriched() *EnrichedEnvelope
func (*Message) GetResolved ¶
func (*Message) GetWrapped ¶
func (m *Message) GetWrapped() *WrappedEnvelope
func (*Message) MarshalToSizedBuffer ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) XXX_DiscardUnknown ¶
func (m *Message) XXX_DiscardUnknown()
func (*Message) XXX_Marshal ¶
func (*Message) XXX_OneofWrappers ¶
func (*Message) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Message) XXX_Unmarshal ¶
type MessageBatch ¶
type MessageBatch struct {
Payload []*Message `protobuf:"bytes,1,rep,name=payload,proto3" json:"payload,omitempty"`
}
MessageBatch is a batch of messages for use in webhook sinks.
func (*MessageBatch) Descriptor ¶
func (*MessageBatch) Descriptor() ([]byte, []int)
func (*MessageBatch) Marshal ¶
func (m *MessageBatch) Marshal() (dAtA []byte, err error)
func (*MessageBatch) MarshalToSizedBuffer ¶
func (m *MessageBatch) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MessageBatch) ProtoMessage ¶
func (*MessageBatch) ProtoMessage()
func (*MessageBatch) Reset ¶
func (m *MessageBatch) Reset()
func (*MessageBatch) Size ¶
func (m *MessageBatch) Size() (n int)
func (*MessageBatch) String ¶
func (m *MessageBatch) String() string
func (*MessageBatch) Unmarshal ¶
func (m *MessageBatch) Unmarshal(dAtA []byte) error
func (*MessageBatch) XXX_DiscardUnknown ¶
func (m *MessageBatch) XXX_DiscardUnknown()
func (*MessageBatch) XXX_Marshal ¶
func (m *MessageBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MessageBatch) XXX_Merge ¶
func (m *MessageBatch) XXX_Merge(src proto.Message)
func (*MessageBatch) XXX_Size ¶
func (m *MessageBatch) XXX_Size() int
func (*MessageBatch) XXX_Unmarshal ¶
func (m *MessageBatch) XXX_Unmarshal(b []byte) error
type Message_Bare ¶
type Message_Bare struct {
Bare *BareEnvelope `protobuf:"bytes,2,opt,name=bare,proto3,oneof" json:"bare,omitempty"`
}
func (*Message_Bare) MarshalToSizedBuffer ¶
func (m *Message_Bare) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Message_Bare) Size ¶
func (m *Message_Bare) Size() (n int)
type Message_BareResolved ¶
type Message_BareResolved struct {
BareResolved *BareResolved `protobuf:"bytes,5,opt,name=bareResolved,proto3,oneof" json:"bareResolved,omitempty"`
}
func (*Message_BareResolved) MarshalTo ¶
func (m *Message_BareResolved) MarshalTo(dAtA []byte) (int, error)
func (*Message_BareResolved) MarshalToSizedBuffer ¶
func (m *Message_BareResolved) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Message_BareResolved) Size ¶
func (m *Message_BareResolved) Size() (n int)
type Message_Enriched ¶
type Message_Enriched struct {
Enriched *EnrichedEnvelope `protobuf:"bytes,3,opt,name=enriched,proto3,oneof" json:"enriched,omitempty"`
}
func (*Message_Enriched) MarshalToSizedBuffer ¶
func (m *Message_Enriched) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Message_Enriched) Size ¶
func (m *Message_Enriched) Size() (n int)
type Message_Resolved ¶
type Message_Resolved struct {
Resolved *Resolved `protobuf:"bytes,4,opt,name=resolved,proto3,oneof" json:"resolved,omitempty"`
}
func (*Message_Resolved) MarshalToSizedBuffer ¶
func (m *Message_Resolved) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Message_Resolved) Size ¶
func (m *Message_Resolved) Size() (n int)
type Message_Wrapped ¶
type Message_Wrapped struct {
Wrapped *WrappedEnvelope `protobuf:"bytes,1,opt,name=wrapped,proto3,oneof" json:"wrapped,omitempty"`
}
func (*Message_Wrapped) MarshalToSizedBuffer ¶
func (m *Message_Wrapped) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Message_Wrapped) Size ¶
func (m *Message_Wrapped) Size() (n int)
type Metadata ¶
type Metadata struct {
Updated string `protobuf:"bytes,1,opt,name=updated,proto3" json:"updated,omitempty"`
MvccTimestamp string `protobuf:"bytes,2,opt,name=mvcc_timestamp,json=mvccTimestamp,proto3" json:"mvcc_timestamp,omitempty"`
Key *Key `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
Topic string `protobuf:"bytes,4,opt,name=topic,proto3" json:"topic,omitempty"`
}
Metadata contains CockroachDB-specific metadata about a change event. This message is also referred to as '__crdb__'.
func (*Metadata) Descriptor ¶
func (*Metadata) MarshalToSizedBuffer ¶
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) XXX_DiscardUnknown ¶
func (m *Metadata) XXX_DiscardUnknown()
func (*Metadata) XXX_Marshal ¶
func (*Metadata) XXX_Unmarshal ¶
type Op ¶
type Op int32
Op enumerates the types of operations represented in a change event.
func (Op) EnumDescriptor ¶
type Record ¶
Record represents a flat mapping of column names to values for a row.
func (*Record) Descriptor ¶
func (*Record) MarshalToSizedBuffer ¶
func (*Record) ProtoMessage ¶
func (*Record) ProtoMessage()
func (*Record) XXX_DiscardUnknown ¶
func (m *Record) XXX_DiscardUnknown()
func (*Record) XXX_Marshal ¶
func (*Record) XXX_Unmarshal ¶
type Resolved ¶
type Resolved struct {
Resolved string `protobuf:"bytes,1,opt,name=resolved,proto3" json:"resolved,omitempty"`
}
Resolved carries resolved timestamp information for a changefeed span.
func (*Resolved) Descriptor ¶
func (*Resolved) MarshalToSizedBuffer ¶
func (*Resolved) ProtoMessage ¶
func (*Resolved) ProtoMessage()
func (*Resolved) XXX_DiscardUnknown ¶
func (m *Resolved) XXX_DiscardUnknown()
func (*Resolved) XXX_Marshal ¶
func (*Resolved) XXX_Unmarshal ¶
type Value ¶
type Value struct {
// Types that are valid to be assigned to Value:
//
// *Value_StringValue
// *Value_BytesValue
// *Value_Int32Value
// *Value_Int64Value
// *Value_FloatValue
// *Value_DoubleValue
// *Value_BoolValue
// *Value_TimestampValue
// *Value_ArrayValue
// *Value_TupleValue
// *Value_DecimalValue
// *Value_DateValue
// *Value_IntervalValue
// *Value_TimeValue
// *Value_UuidValue
Value isValue_Value `protobuf_oneof:"value"`
}
Value represents a value of arbitrary type carried in a change event.
func (*Value) Descriptor ¶
func (*Value) GetArrayValue ¶
func (*Value) GetBoolValue ¶
func (*Value) GetBytesValue ¶
func (*Value) GetDateValue ¶
func (*Value) GetDecimalValue ¶
func (*Value) GetDoubleValue ¶
func (*Value) GetFloatValue ¶
func (*Value) GetInt32Value ¶
func (*Value) GetInt64Value ¶
func (*Value) GetIntervalValue ¶
func (*Value) GetStringValue ¶
func (*Value) GetTimeValue ¶
func (*Value) GetTimestampValue ¶
func (*Value) GetTupleValue ¶
func (*Value) GetUuidValue ¶
func (*Value) MarshalJSON ¶
MarshalJSON provides clean, unwrapped JSON output for changefeedpb.Value.
func (*Value) ProtoMessage ¶
func (*Value) ProtoMessage()
func (*Value) XXX_DiscardUnknown ¶
func (m *Value) XXX_DiscardUnknown()
func (*Value) XXX_Marshal ¶
func (*Value) XXX_OneofWrappers ¶
func (*Value) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Value) XXX_Unmarshal ¶
type Value_ArrayValue ¶
type Value_ArrayValue struct {
ArrayValue *Array `protobuf:"bytes,9,opt,name=array_value,json=arrayValue,proto3,oneof" json:"array_value,omitempty"`
}
func (*Value_ArrayValue) MarshalToSizedBuffer ¶
func (m *Value_ArrayValue) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Value_ArrayValue) Size ¶
func (m *Value_ArrayValue) Size() (n int)
type Value_BoolValue ¶
type Value_BoolValue struct {
BoolValue bool `protobuf:"varint,7,opt,name=bool_value,json=boolValue,proto3,oneof" json:"bool_value,omitempty"`
}
func (*Value_BoolValue) MarshalToSizedBuffer ¶
func (m *Value_BoolValue) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Value_BoolValue) Size ¶
func (m *Value_BoolValue) Size() (n int)
type Value_BytesValue ¶
type Value_BytesValue struct {
BytesValue []byte `protobuf:"bytes,2,opt,name=bytes_value,json=bytesValue,proto3,oneof" json:"bytes_value,omitempty"`
}
func (*Value_BytesValue) MarshalToSizedBuffer ¶
func (m *Value_BytesValue) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Value_BytesValue) Size ¶
func (m *Value_BytesValue) Size() (n int)
type Value_DateValue ¶
type Value_DateValue struct {
DateValue string `protobuf:"bytes,12,opt,name=date_value,json=dateValue,proto3,oneof" json:"date_value,omitempty"`
}
func (*Value_DateValue) MarshalToSizedBuffer ¶
func (m *Value_DateValue) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Value_DateValue) Size ¶
func (m *Value_DateValue) Size() (n int)
type Value_DecimalValue ¶
type Value_DecimalValue struct {
DecimalValue *Decimal `protobuf:"bytes,11,opt,name=decimal_value,json=decimalValue,proto3,oneof" json:"decimal_value,omitempty"`
}
func (*Value_DecimalValue) MarshalTo ¶
func (m *Value_DecimalValue) MarshalTo(dAtA []byte) (int, error)
func (*Value_DecimalValue) MarshalToSizedBuffer ¶
func (m *Value_DecimalValue) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Value_DecimalValue) Size ¶
func (m *Value_DecimalValue) Size() (n int)
type Value_DoubleValue ¶
type Value_DoubleValue struct {
DoubleValue float64 `protobuf:"fixed64,6,opt,name=double_value,json=doubleValue,proto3,oneof" json:"double_value,omitempty"`
}
func (*Value_DoubleValue) MarshalTo ¶
func (m *Value_DoubleValue) MarshalTo(dAtA []byte) (int, error)
func (*Value_DoubleValue) MarshalToSizedBuffer ¶
func (m *Value_DoubleValue) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Value_DoubleValue) Size ¶
func (m *Value_DoubleValue) Size() (n int)
type Value_FloatValue ¶
type Value_FloatValue struct {
FloatValue float32 `protobuf:"fixed32,5,opt,name=float_value,json=floatValue,proto3,oneof" json:"float_value,omitempty"`
}
func (*Value_FloatValue) MarshalToSizedBuffer ¶
func (m *Value_FloatValue) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Value_FloatValue) Size ¶
func (m *Value_FloatValue) Size() (n int)
type Value_Int32Value ¶
type Value_Int32Value struct {
Int32Value int32 `protobuf:"varint,3,opt,name=int32_value,json=int32Value,proto3,oneof" json:"int32_value,omitempty"`
}
func (*Value_Int32Value) MarshalToSizedBuffer ¶
func (m *Value_Int32Value) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Value_Int32Value) Size ¶
func (m *Value_Int32Value) Size() (n int)
type Value_Int64Value ¶
type Value_Int64Value struct {
Int64Value int64 `protobuf:"varint,4,opt,name=int64_value,json=int64Value,proto3,oneof" json:"int64_value,omitempty"`
}
func (*Value_Int64Value) MarshalToSizedBuffer ¶
func (m *Value_Int64Value) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Value_Int64Value) Size ¶
func (m *Value_Int64Value) Size() (n int)
type Value_IntervalValue ¶
type Value_IntervalValue struct {
IntervalValue string `protobuf:"bytes,13,opt,name=interval_value,json=intervalValue,proto3,oneof" json:"interval_value,omitempty"`
}
func (*Value_IntervalValue) MarshalTo ¶
func (m *Value_IntervalValue) MarshalTo(dAtA []byte) (int, error)
func (*Value_IntervalValue) MarshalToSizedBuffer ¶
func (m *Value_IntervalValue) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Value_IntervalValue) Size ¶
func (m *Value_IntervalValue) Size() (n int)
type Value_StringValue ¶
type Value_StringValue struct {
StringValue string `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3,oneof" json:"string_value,omitempty"`
}
func (*Value_StringValue) MarshalTo ¶
func (m *Value_StringValue) MarshalTo(dAtA []byte) (int, error)
func (*Value_StringValue) MarshalToSizedBuffer ¶
func (m *Value_StringValue) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Value_StringValue) Size ¶
func (m *Value_StringValue) Size() (n int)
type Value_TimeValue ¶
type Value_TimeValue struct {
TimeValue string `protobuf:"bytes,14,opt,name=time_value,json=timeValue,proto3,oneof" json:"time_value,omitempty"`
}
func (*Value_TimeValue) MarshalToSizedBuffer ¶
func (m *Value_TimeValue) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Value_TimeValue) Size ¶
func (m *Value_TimeValue) Size() (n int)
type Value_TimestampValue ¶
type Value_TimestampValue struct {
TimestampValue *types.Timestamp `protobuf:"bytes,8,opt,name=timestamp_value,json=timestampValue,proto3,oneof" json:"timestamp_value,omitempty"`
}
func (*Value_TimestampValue) MarshalTo ¶
func (m *Value_TimestampValue) MarshalTo(dAtA []byte) (int, error)
func (*Value_TimestampValue) MarshalToSizedBuffer ¶
func (m *Value_TimestampValue) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Value_TimestampValue) Size ¶
func (m *Value_TimestampValue) Size() (n int)
type Value_TupleValue ¶
type Value_TupleValue struct {
TupleValue *Record `protobuf:"bytes,10,opt,name=tuple_value,json=tupleValue,proto3,oneof" json:"tuple_value,omitempty"`
}
func (*Value_TupleValue) MarshalToSizedBuffer ¶
func (m *Value_TupleValue) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Value_TupleValue) Size ¶
func (m *Value_TupleValue) Size() (n int)
type Value_UuidValue ¶
type Value_UuidValue struct {
UuidValue string `protobuf:"bytes,15,opt,name=uuid_value,json=uuidValue,proto3,oneof" json:"uuid_value,omitempty"`
}
func (*Value_UuidValue) MarshalToSizedBuffer ¶
func (m *Value_UuidValue) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Value_UuidValue) Size ¶
func (m *Value_UuidValue) Size() (n int)
type WrappedEnvelope ¶
type WrappedEnvelope struct {
After *Record `protobuf:"bytes,1,opt,name=after,proto3" json:"after,omitempty"`
Before *Record `protobuf:"bytes,2,opt,name=before,proto3" json:"before,omitempty"`
Updated string `protobuf:"bytes,4,opt,name=updated,proto3" json:"updated,omitempty"`
MvccTimestamp string `protobuf:"bytes,5,opt,name=mvcc_timestamp,json=mvccTimestamp,proto3" json:"mvcc_timestamp,omitempty"`
Key *Key `protobuf:"bytes,6,opt,name=key,proto3" json:"key,omitempty"`
Topic string `protobuf:"bytes,7,opt,name=topic,proto3" json:"topic,omitempty"`
}
WrappedEnvelope includes both the changed data and contextual metadata about the change.
func (*WrappedEnvelope) Descriptor ¶
func (*WrappedEnvelope) Descriptor() ([]byte, []int)
func (*WrappedEnvelope) Marshal ¶
func (m *WrappedEnvelope) Marshal() (dAtA []byte, err error)
func (*WrappedEnvelope) MarshalToSizedBuffer ¶
func (m *WrappedEnvelope) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*WrappedEnvelope) ProtoMessage ¶
func (*WrappedEnvelope) ProtoMessage()
func (*WrappedEnvelope) Reset ¶
func (m *WrappedEnvelope) Reset()
func (*WrappedEnvelope) Size ¶
func (m *WrappedEnvelope) Size() (n int)
func (*WrappedEnvelope) String ¶
func (m *WrappedEnvelope) String() string
func (*WrappedEnvelope) Unmarshal ¶
func (m *WrappedEnvelope) Unmarshal(dAtA []byte) error
func (*WrappedEnvelope) XXX_DiscardUnknown ¶
func (m *WrappedEnvelope) XXX_DiscardUnknown()
func (*WrappedEnvelope) XXX_Marshal ¶
func (m *WrappedEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WrappedEnvelope) XXX_Merge ¶
func (m *WrappedEnvelope) XXX_Merge(src proto.Message)
func (*WrappedEnvelope) XXX_Size ¶
func (m *WrappedEnvelope) XXX_Size() int
func (*WrappedEnvelope) XXX_Unmarshal ¶
func (m *WrappedEnvelope) XXX_Unmarshal(b []byte) error