Documentation
¶
Index ¶
- Constants
- func TestAuditOpFromCreatedEvent(t *testing.T)
- func TestAuditOpFromDeletedEvent(t *testing.T)
- func TestAuditOpFromUpdatedEvent(t *testing.T)
- func TestProcessEventSqlComplexTableName(t *testing.T)
- func TestProcessEventSqlEmptyTraceId(t *testing.T)
- func TestProcessEventSqlMultipleEventsManyAttribute(t *testing.T)
- func TestProcessEventSqlMultipleEventsOneAttribute(t *testing.T)
- func TestProcessEventSqlNoEvents(t *testing.T)
- func TestProcessEventSqlSingleEvent(t *testing.T)
- func TestProcessEventSqlWithMultipleModels(t *testing.T)
- type AuditLog
Constants ¶
View Source
const ( Insert = "insert" Update = "update" Delete = "delete" )
Audit operations
View Source
const ( ColumnId = "id" ColumnTableName = "table_name" ColumnOp = "op" ColumnData = "data" ColumnIdentityId = "identity_id" ColumnTraceId = "trace_id" ColumnCreatedAt = "created_at" ColumnEventProcessedAt = "event_processed_at" )
Audit table column names
View Source
const TableName = "keel_audit"
Audit table name
Variables ¶
This section is empty.
Functions ¶
func TestAuditOpFromCreatedEvent ¶
func TestAuditOpFromCreatedEvent(t *testing.