diff --git a/distribution/distribution.go b/distribution/distribution.go index 50cd771..e29e384 100644 --- a/distribution/distribution.go +++ b/distribution/distribution.go @@ -1,7 +1,7 @@ package distribution import ( - domainModels "git.gregbrzezinski.com/Skirda/skirdagoutils/models/domain" + domainModels "git.gregbrzezinski.com/Skirda/skirdagoutils/models/domainModels" ) type Distributiuon struct { diff --git a/models/domain/domainModels.go b/models/domainModels/domainModels.go similarity index 100% rename from models/domain/domainModels.go rename to models/domainModels/domainModels.go diff --git a/models/sessions/fakeSessions.go b/models/sessions/fakeSessions.go index c3dc501..bbd5cbd 100644 --- a/models/sessions/fakeSessions.go +++ b/models/sessions/fakeSessions.go @@ -6,11 +6,35 @@ import ( gamesModels "git.gregbrzezinski.com/Skirda/skirdagoutils/models/games" ) -var fakeSession1 = Session{ - SessionId: "FakeSession1", - GameId: "fakegameid1", - Assets: gamesModels.GameInterfaceAssets{}, - Expires: time.Time{}, - Arguments: []gamesModels.Argument{}, +var FakeSessions = Sessions{ //TODO: Move to front + Sessions: []Session{ + { + GameId: "garrysmod", + SessionId: "gmod-test", + // Icon: "", + // Title: "Regular Skirda Gmod server", + // Status: "Super fake session", + // Version: "", + Expires: time.Time{}, + Arguments: []gamesModels.Argument{ + { + Body: "+connect", + Value: "127.0.0.1:27015", + }, + }, + }, + { + // GameId: "half-lide-1", + // Title: "Half-Life 1 МЯСО", + // Status: "Retro shit", + Expires: time.Time{}, + }, + { + GameId: "minecraft", + // Title: "Test 3", + // Status: "Testing session", + // Version: "1.54.7", + Expires: time.Time{}, + }, + }, } -var FakeSessions = []Session{fakeSession1} diff --git a/utils/domain/domainUtils.go b/utils/domain/domainUtils.go index 0a76bc2..93392ea 100644 --- a/utils/domain/domainUtils.go +++ b/utils/domain/domainUtils.go @@ -1,7 +1,7 @@ package domainUtils import ( - domainModels "git.gregbrzezinski.com/Skirda/skirdagoutils/models/domain" + domainModels "git.gregbrzezinski.com/Skirda/skirdagoutils/models/domainModels" gamesModels "git.gregbrzezinski.com/Skirda/skirdagoutils/models/games" // sessionsModels "git.gregbrzezinski.com/Skirda/skirdagoutils/models/sessions" ) diff --git a/utils/session/sessionUtils.go b/utils/session/sessionUtils.go index 45d0c58..155962b 100644 --- a/utils/session/sessionUtils.go +++ b/utils/session/sessionUtils.go @@ -41,36 +41,3 @@ func GetJSSessionInterface(s sessionsModels.Session) sessionsModels.JSSessionInt } return newInterface } - -var FakeSessions = sessionsModels.Sessions{ //TODO: Move to front - Sessions: []sessionsModels.Session{ - { - GameId: "garrysmod", - SessionId: "gmod-test", - // Icon: "", - // Title: "Regular Skirda Gmod server", - // Status: "Super fake session", - // Version: "", - Expires: time.Time{}, - Arguments: []gamesModels.Argument{ - { - Body: "+connect", - Value: "127.0.0.1:27015", - }, - }, - }, - { - // GameId: "half-lide-1", - // Title: "Half-Life 1 МЯСО", - // Status: "Retro shit", - Expires: time.Time{}, - }, - { - GameId: "minecraft", - // Title: "Test 3", - // Status: "Testing session", - // Version: "1.54.7", - Expires: time.Time{}, - }, - }, -}