Versions in this module Expand all Collapse all v1 v1.0.8 Jun 27, 2020 Changes in this version + const EventTypeCreated + const EventTypeDeleted + const EventTypeUpdated + const ORMChangeEvent + type Event struct + Changes []*EventChange + ID string + NewValues map[string]EventDataValue + OldValues map[string]EventDataValue + func NewEvent(meta EventMetadata) Event + func (e *Event) AddNewValue(column string, v EventDataValue) + func (e *Event) AddOldValue(column string, v EventDataValue) + func (e *Event) Change(column string) (ec *EventChange) + func (e Event) ChangedColumns() []string + func (e Event) HasChangedColumn(c string) bool + type EventChange struct + Name string + NewValue string + OldValue string + func (ec *EventChange) NewValueAs(data interface{}) error + func (ec *EventChange) OldValueAs(data interface{}) error + func (ec *EventChange) SetNewValue(value interface{}) error + func (ec *EventChange) SetOldValue(value interface{}) error + type EventController struct + func NewEventController() (ec EventController, err error) + func (c *EventController) SendEvent(ctx context.Context, e *Event) (err error) + type EventDataValue interface + type EventMetadata struct + Date time.Time + Entity string + EntityID string + PrincipalID *string + Type EventType + type EventType string