Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
Operation OperationType `json:"operation"`
ID string `json:"id"`
Table string `json:"table"`
Key []string `json:"key"`
Version *int64 `json:"version,omitempty"`
ModelVersion string `json:"modelVersion"`
Region string `json:"region"`
CompanyID *string `json:"companyId,omitempty"`
LocationID *string `json:"locationId,omitempty"`
SessionID *string `json:"sessionId,omitempty"`
UserID *string `json:"userId,omitempty"`
Before json.RawMessage `json:"before,omitempty"`
After json.RawMessage `json:"after,omitempty"`
Diff []string `json:"diff,omitempty"`
Timestamp int64 `json:"timestamp"`
MVCCTimestamp string `json:"mvccTimestamp"`
// contains filtered or unexported fields
}
Event represents a change record from the database.
func (*Event) GetPrimaryKey ¶
type OperationType ¶ added in v0.1.1
type OperationType string
const ( OperationInsert OperationType = "INSERT" OperationUpdate OperationType = "UPDATE" OperationDelete OperationType = "DELETE" )
Click to show internal directories.
Click to hide internal directories.