From bb446adb6f432a6d904026e71467849a50dcb7e7 Mon Sep 17 00:00:00 2001 From: cyber-dream Date: Wed, 2 Nov 2022 12:53:47 +0300 Subject: [PATCH] add fake sessions --- sessionUtils/sessionUtils.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/sessionUtils/sessionUtils.go b/sessionUtils/sessionUtils.go index 3a99332..9a75c42 100644 --- a/sessionUtils/sessionUtils.go +++ b/sessionUtils/sessionUtils.go @@ -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{}, + }, +}