refactoring
This commit is contained in:
parent
2fa9396049
commit
6c6020ef94
@ -1,7 +1,7 @@
|
|||||||
package distribution
|
package distribution
|
||||||
|
|
||||||
import (
|
import (
|
||||||
domainModels "git.gregbrzezinski.com/Skirda/skirdagoutils/models/domain"
|
domainModels "git.gregbrzezinski.com/Skirda/skirdagoutils/models/domainModels"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Distributiuon struct {
|
type Distributiuon struct {
|
||||||
|
@ -6,11 +6,35 @@ import (
|
|||||||
gamesModels "git.gregbrzezinski.com/Skirda/skirdagoutils/models/games"
|
gamesModels "git.gregbrzezinski.com/Skirda/skirdagoutils/models/games"
|
||||||
)
|
)
|
||||||
|
|
||||||
var fakeSession1 = Session{
|
var FakeSessions = Sessions{ //TODO: Move to front
|
||||||
SessionId: "FakeSession1",
|
Sessions: []Session{
|
||||||
GameId: "fakegameid1",
|
{
|
||||||
Assets: gamesModels.GameInterfaceAssets{},
|
GameId: "garrysmod",
|
||||||
|
SessionId: "gmod-test",
|
||||||
|
// Icon: "",
|
||||||
|
// Title: "Regular Skirda Gmod server",
|
||||||
|
// Status: "Super fake session",
|
||||||
|
// Version: "",
|
||||||
Expires: time.Time{},
|
Expires: time.Time{},
|
||||||
Arguments: []gamesModels.Argument{},
|
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}
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package domainUtils
|
package domainUtils
|
||||||
|
|
||||||
import (
|
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"
|
gamesModels "git.gregbrzezinski.com/Skirda/skirdagoutils/models/games"
|
||||||
// sessionsModels "git.gregbrzezinski.com/Skirda/skirdagoutils/models/sessions"
|
// sessionsModels "git.gregbrzezinski.com/Skirda/skirdagoutils/models/sessions"
|
||||||
)
|
)
|
||||||
|
@ -41,36 +41,3 @@ func GetJSSessionInterface(s sessionsModels.Session) sessionsModels.JSSessionInt
|
|||||||
}
|
}
|
||||||
return newInterface
|
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{},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user