29 lines
545 B
Go
29 lines
545 B
Go
package sessionUtils
|
|
|
|
import (
|
|
"time"
|
|
|
|
"git.gregbrzezinski.com/Skirda/skirdagoutils/gameUtils"
|
|
)
|
|
|
|
type Session struct {
|
|
SessionId string
|
|
GameId string
|
|
Assets gameUtils.GameInterfaceAssets
|
|
Expires time.Time
|
|
Arguments []gameUtils.Argument
|
|
}
|
|
|
|
type Sessions struct {
|
|
Sessions []Session
|
|
}
|
|
|
|
type JSSessionInterface struct {
|
|
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"`
|
|
}
|