Versions in this module Expand all Collapse all v1 v1.1.1 Oct 30, 2021 v1.1.0 Oct 25, 2021 Changes in this version + var ErrNilDispatcher = errors.New("nil dispatcher") + var ErrUnknown = errors.New("unknown event") + var Types = []Type + type Dispatcher interface + Dispatch func(ev *Event) error + func MultiDispatcher(dispatchers ...Dispatcher) Dispatcher + type Event struct + CreatedAt time.Time + Data map[string]interface{} + ID uuid.UUID + NamespaceID sql.NullInt64 + Type Type + func New(namespaceId sql.NullInt64, typ Type, data map[string]interface{}) *Event + type Type uint + const BuildFinished + const BuildStarted + const BuildSubmitted + const BuildTagged + const Cron + const Images + const InviteAccepted + const InviteRejected + const InviteSent + const Namespaces + const Objects + const SSHKeys + const Variables + func Lookup(name string) (Type, bool) + func UnmarshalType(names ...string) (Type, error) + func (i Type) String() string + func (t *Type) Scan(v interface{}) error + func (t Type) Has(mask Type) bool + func (t Type) Value() (driver.Value, error)