/
events.go
31 lines (28 loc) · 974 Bytes
/
events.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package main
// EventNames contains the names for events emitted by the application during runtime.
type EventNames struct {
NewRound string
RoundWatcherStarted string
RoundWatcherError string
RoundWatcherStopped string
RoundPush string
LatestReleaseInfo string
LatestReleaseInfoErr string
UpdateProgress string
UpdateErr string
}
var eventNames = EventNames{
NewRound: "R6_NEW_ROUND",
RoundWatcherStarted: "R6_ROUNDS_WATCHER_STARTED",
RoundWatcherError: "R6_ROUND_WATCHER_ERROR",
RoundWatcherStopped: "R6_ROUND_WATCHER_STOPPED",
RoundPush: "R6_ROUND_PUSH",
LatestReleaseInfo: "R6_RELEASE_INFO",
LatestReleaseInfoErr: "R6_RELEASE_INFO_ERR",
UpdateProgress: "R6_UPDATE_PROGRESS",
UpdateErr: "R6_UPDATE_ERROR",
}
// GetEventNames returns the event names emitted by the application during runtime.
func (*App) GetEventNames() EventNames {
return eventNames
}