Documentation
¶
Index ¶
Constants ¶
View Source
const ( OpInsert = "c" OpUpdate = "u" OpDelete = "d" )
Op values for the CDC change record.
View Source
const ProtocolVersion = 1
Variables ¶
This section is empty.
Functions ¶
func CDCRecordSchema ¶
CDCRecordSchema returns the fixed schema of a CDC change record (CONTRACT §8.1). Columns: op(0), before(1), after(2), offset(3), ts_source(4). tableFields defines the columns of the source table for before/after structs.
func ValidateOp ¶
ValidateOp checks that op is one of the three allowed values.
Types ¶
type DoPutRequest ¶
type FlightInfoResponse ¶
type GetFlightInfoRequest ¶
type ListTablesResponse ¶
type ListTablesResponse struct {
Tables []TableInfo `json:"tables"`
}
type StatusResponse ¶
type StatusResponse struct {
State string `json:"state"`
Tables map[string]TableStatus `json:"tables,omitempty"`
UptimeSec int64 `json:"uptimeSec"`
}
type TableStatus ¶
Click to show internal directories.
Click to hide internal directories.