Documentation
¶
Index ¶
- Constants
- func BuildSubject(topic events.Topic, tType events.Type, job string, id uint64) string
- func GetEventTypeFromSubject(subject string) (events.Topic, events.Type)
- func RegisterEvents(ctx context.Context, ev *events.Eventus) error
- func SplitSubject(subject string) (string, events.Topic, events.Type)
Constants ¶
View Source
const ( BaseSubject events.Subject = "centrum" TopicGeneral events.Topic = "general" TypeGeneralSettings events.Type = "settings" TypeGeneralDisponents events.Type = "disponents" TopicDispatch events.Topic = "dispatch" TypeDispatchCreated events.Type = "created" TypeDispatchDeleted events.Type = "deleted" TypeDispatchUpdated events.Type = "updated" TypeDispatchStatus events.Type = "status" TopicUnit events.Topic = "unit" TypeUnitDeleted events.Type = "deleted" TypeUnitUpdated events.Type = "updated" TypeUnitStatus events.Type = "status" )
Variables ¶
This section is empty.
Functions ¶
func BuildSubject ¶
func GetEventTypeFromSubject ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.