sharedutils/sessionUtils/sessionTypes.go

32 lines
592 B
Go
Raw Normal View History

2022-10-27 20:31:46 +00:00
package sessionUtils
import (
"time"
"git.gregbrzezinski.com/Skirda/skirdaGoBackend/skirdagoutils/gameUtils"
2022-10-27 20:31:46 +00:00
)
type Session struct {
2022-11-04 00:03:38 +00:00
SessionId string
GameId string
Icon string
Title string
Status string
Version string
Expires time.Time
Arguments []gameUtils.Argument
2022-10-27 20:31:46 +00:00
}
2022-11-03 23:21:44 +00:00
type Sessions struct {
Sessions []Session
}
2022-10-27 20:31:46 +00:00
type JSSessionInterface struct {
2022-10-28 14:21:10 +00:00
GameID string `json:"gameId"`
Icon string `json:"icon"`
Title string `json:"title"`
Status string `json:"status"`
Version string `json:"version"`
Expires time.Time `json:"expires"`
2022-10-27 20:31:46 +00:00
}