Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeSet ¶
type ChangeSet struct {
Type string `json:"type"`
Timestamp string `json:"timestamp"`
Added []map[string]interface{} `json:"added,omitempty"`
Deleted []string `json:"deleted,omitempty"`
Modified []RecordChange `json:"modified,omitempty"`
TotalCount int `json:"total_count"`
KeyField string `json:"key_field"`
Raw bool `json:"raw"`
}
ChangeSet is the shared incremental payload used by the WebSocket server, CLI watch webhooks, and command sinks.
type RecordChange ¶
type RecordChange struct {
Code string `json:"code"`
ChangeType string `json:"change_type"`
OldValues map[string]interface{} `json:"old_values,omitempty"`
NewValues map[string]interface{} `json:"new_values,omitempty"`
ChangedFields []string `json:"changed_fields,omitempty"`
Record map[string]interface{} `json:"record,omitempty"`
}
RecordChange describes one modified record while preserving the legacy WebSocket fields and carrying the complete new record for downstream sinks.