Versions in this module Expand all Collapse all v0 v0.2.1 Jun 13, 2024 v0.2.0 Apr 29, 2024 v0.1.0 Mar 15, 2024 v0.0.1 Feb 23, 2024 Changes in this version + func SetEventReceiverGroupEnabled(tx *gorm.DB, id graphql.ID, enabled bool) error + type Database struct + Client *gorm.DB + func New(host, user, pass, sslMode, database string, port int) (*Database, error) + func (db *Database) SyncSchema() error + type Event struct + CreatedAt types.Time + Description string + EventReceiver EventReceiver + EventReceiverID graphql.ID + ID graphql.ID + Name string + Package string + Payload types.JSON + PlatformID string + Release string + Success bool + Version string + func CreateEvent(tx *gorm.DB, event Event) (*Event, error) + func EventFromJSON(reader io.Reader) (*Event, error) + func FindEvent(tx *gorm.DB, e map[string]any) ([]Event, error) + func FindEventByID(tx *gorm.DB, id graphql.ID) ([]Event, error) + func (e *Event) ToJSON() (string, error) + func (e *Event) ToYAML() (string, error) + type EventReceiver struct + CreatedAt types.Time + Description string + Fingerprint string + ID graphql.ID + Name string + Schema types.JSON + Type string + Version string + func CreateEventReceiver(tx *gorm.DB, eventReceiver EventReceiver) (*EventReceiver, error) + func EventReceiverFromJSON(reader io.Reader) (*EventReceiver, error) + func FindEventReceiver(tx *gorm.DB, er map[string]any) ([]EventReceiver, error) + func FindEventReceiverByID(tx *gorm.DB, id graphql.ID) ([]EventReceiver, error) + func (e *EventReceiver) ToJSON() (string, error) + func (e *EventReceiver) ToYAML() (string, error) + type EventReceiverGroup struct + CreatedAt types.Time + Description string + Enabled bool + EventReceiverIDs []graphql.ID + ID graphql.ID + Name string + Type string + UpdatedAt types.Time + Version string + func CreateEventReceiverGroup(tx *gorm.DB, eventReceiverGroup EventReceiverGroup) (*EventReceiverGroup, error) + func EventReceiverGroupFromJSON(reader io.Reader) (*EventReceiverGroup, error) + func FindEventReceiverGroup(tx *gorm.DB, erg map[string]any) ([]EventReceiverGroup, error) + func FindEventReceiverGroupByID(tx *gorm.DB, id graphql.ID) ([]EventReceiverGroup, error) + func FindTriggeredEventReceiverGroups(tx *gorm.DB, event Event) ([]EventReceiverGroup, error) + func (e *EventReceiverGroup) ToJSON() (string, error) + func (e *EventReceiverGroup) ToYAML() (string, error) + type EventReceiverGroupToEventReceiver struct + EventReceiver EventReceiver + EventReceiverGroup EventReceiverGroup + EventReceiverGroupID graphql.ID + EventReceiverID graphql.ID + ID int + type TriggeredEventReceiverGroups struct + EventReceiverIDs types.JSON