add fake sessions

This commit is contained in:
cyber-dream 2022-11-02 12:53:47 +03:00
parent 1fc099c1be
commit bb446adb6f

View File

@ -2,6 +2,7 @@ package sessionUtils
import (
"encoding/json"
"time"
)
func ConvertServerSessionsToJSON(s Session) []byte {
@ -9,3 +10,25 @@ func ConvertServerSessionsToJSON(s Session) []byte {
_ = err //TODO: Check Errors
return s_json
}
var FakeSessions = []Session{
{
GameId: "garrysmod",
Title: "Test 1",
Status: "Super fake session",
Expires: time.Time{},
},
{
GameId: "beamng",
Title: "Test 2",
Status: "Super fake session 2",
Expires: time.Time{},
},
{
GameId: "minecraft",
Title: "Test 3",
Status: "Testing session",
Version: "1.54.7",
Expires: time.Time{},
},
}