Add Uptime to Activity Panel

This commit is contained in:
Deluan
2020-11-13 18:40:33 -05:00
parent b64bb706f7
commit 08f96639f4
9 changed files with 118 additions and 35 deletions
+8
View File
@@ -1,5 +1,7 @@
package events
import "time"
type Event interface {
EventName() string
}
@@ -16,3 +18,9 @@ type KeepAlive struct {
}
func (s KeepAlive) EventName() string { return "keepAlive" }
type ServerStart struct {
StartTime time.Time `json:"startTime"`
}
func (s ServerStart) EventName() string { return "serverStart" }