mirror of
https://github.com/fastenhealth/fasten-onprem.git
synced 2026-02-18 08:08:39 -06:00
created models for event bus messaging. added logger. added source complete and sync events.
17 lines
339 B
Go
17 lines
339 B
Go
package models
|
|
|
|
type EventSourceComplete struct {
|
|
*Event `json:",inline"`
|
|
SourceID string `json:"source_id"`
|
|
}
|
|
|
|
func NewEventSourceComplete(userID string, sourceID string) *EventSourceComplete {
|
|
return &EventSourceComplete{
|
|
Event: &Event{
|
|
UserID: userID,
|
|
EventType: EventTypeSourceComplete,
|
|
},
|
|
SourceID: sourceID,
|
|
}
|
|
}
|