2023-09-09 09:24:25 -06:00
|
|
|
package models
|
|
|
|
|
|
|
|
type EventSourceSyncStatus string
|
|
|
|
|
|
|
|
const (
|
2023-09-13 14:28:37 -06:00
|
|
|
EventTypeKeepAlive EventSourceSyncStatus = "keep_alive"
|
2023-09-09 09:24:25 -06:00
|
|
|
EventTypeSourceSync EventSourceSyncStatus = "source_sync"
|
|
|
|
EventTypeSourceComplete EventSourceSyncStatus = "source_complete"
|
|
|
|
)
|
|
|
|
|
|
|
|
type EventInterface interface {
|
|
|
|
GetUserID() string
|
|
|
|
}
|
|
|
|
|
|
|
|
type Event struct {
|
|
|
|
UserID string `json:"-"`
|
|
|
|
EventType EventSourceSyncStatus `json:"event_type"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (e *Event) GetUserID() string {
|
|
|
|
return e.UserID
|
|
|
|
}
|