Versions in this module Expand all Collapse all v0 v0.0.1 Jan 7, 2021 Changes in this version + type Database interface + FindByCode func(event.Code) (EventDef, bool) + func New(defs []EventDef) Database + type EventDef struct + Code event.Code + Codename string + Description string + Fields []FieldDef + RaisedBy []string + Tags []string + Type event.Type + func EventDefsFromFile(path string) ([]EventDef, error) + func (def *EventDef) Complete(e event.Event) event.Event + func (def *EventDef) ValidateData(e event.Event) error + type FieldDef struct + Name string + Required bool + Type string