sharedutils/sessionUtils/sessionTypes.go

29 lines
545 B
Go
Raw Normal View History

2022-10-27 20:31:46 +00:00
package sessionUtils
import (
"time"
2022-11-04 20:02:25 +00:00
"git.gregbrzezinski.com/Skirda/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
Assets gameUtils.GameInterfaceAssets
2022-11-04 00:03:38 +00:00
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
}