rename packages

This commit is contained in:
Gregory Brzezinski 2022-11-11 17:22:34 +03:00
parent 6ecd1f8846
commit bf4b92b296
10 changed files with 30 additions and 36 deletions

View File

@ -1,7 +1,5 @@
package distribution package distribution
import domainUtils "git.gregbrzezinski.com/Skirda/skirdagoutils/domain"
type Distributiuon struct { type Distributiuon struct {
Domains []domainUtils.Domain Domains []Domain
} }

View File

@ -0,0 +1,11 @@
package distribution
type Domain struct {
DiscordGroupID string
Games Games
Sessions Sessions
}
type Domains struct {
Domains []Domain
}

View File

@ -0,0 +1,13 @@
package distribution
var fakeDomains = Domains{ //TODO: Move to back
Domains: []Domain{defaultDomain},
}
var defaultDomain = Domain{
DiscordGroupID: "0",
Games: Games{
SteamGames: SteamFakeGamesList,
},
Sessions: FakeSessions,
}

View File

@ -1,4 +1,4 @@
package gameUtils package distribution
var garrysmodGame = SteamGame{ //TODO: Move to front var garrysmodGame = SteamGame{ //TODO: Move to front
GameId: "garrysmod", GameId: "garrysmod",

View File

@ -1,4 +1,4 @@
package gameUtils package distribution
type SteamGame struct { type SteamGame struct {
GameId string GameId string

View File

@ -1,4 +1,4 @@
package gameUtils package distribution
func FindGameByID(id string, list Games) SteamGame { func FindGameByID(id string, list Games) SteamGame {
for _, game := range list.SteamGames { for _, game := range list.SteamGames {

View File

@ -1,4 +1,4 @@
package gameUtils package distribution
import ( import (
"time" "time"

View File

@ -1,4 +1,4 @@
package gameUtils package distribution
import ( import (
"encoding/json" "encoding/json"

View File

@ -1,13 +0,0 @@
package domainUtils
import "git.gregbrzezinski.com/Skirda/skirdagoutils/gameUtils"
type Domain struct {
DiscordGroupID string
Games gameUtils.Games
Sessions gameUtils.Sessions
}
type Domains struct {
Domains []Domain
}

View File

@ -1,15 +0,0 @@
package domainUtils
import "git.gregbrzezinski.com/Skirda/skirdagoutils/gameUtils"
var fakeDomains = Domains{ //TODO: Move to back
Domains: []Domain{defaultDomain},
}
var defaultDomain = Domain{
DiscordGroupID: "0",
Games: gameUtils.Games{
SteamGames: gameUtils.SteamFakeGamesList,
},
Sessions: gameUtils.FakeSessions,
}