Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountSessions ¶
type AccountState ¶
type Accounts ¶
type Accounts struct {
ID primitive.ObjectID `json:"_id" bson:"_id"`
AccountName string `json:"accountName" bson:"accountName"`
Sessions primitive.A `json:"-" bson:"sessions" mson:"collection=accountsessions"`
SessionObjects []AccountSessions `json:"sessions" bson:"-"`
Users primitive.A `json:"-" bson:"users" mson:"collection=users"`
UserObjects []Users `json:"users" bson:"-"`
Agents primitive.A `json:"-" bson:"agents" mson:"collection=agents"`
AgentObjects []Agents `json:"agents" bson:"-"`
State AccountState `json:"state" bson:"state"`
CreatedAt time.Time `json:"createdAt" bson:"createdAt"`
UpdatedAt time.Time `json:"updatedAt" bson:"updatedAt"`
}
func (*Accounts) PopulateAgents ¶
func (*Accounts) PopulateSessions ¶
func (*Accounts) PopulateUsers ¶
type AgentConfig ¶
type AgentConfig struct {
Version string `json:"version" bson:"version"`
Port int `json:"port" bson:"port"`
Memory int64 `json:"memory" bson:"memory"`
IP string `json:"ip" bson:"ip"`
BackupKeepAmount int `json:"backupKeepAmount" bson:"backupKeepAmount"`
BackupInterval float32 `json:"backupInterval" bson:"backupInterval"`
}
type AgentMapData ¶
type AgentMapData struct {
Players []AgentMapDataPlayer `json:"players" bson:"players"`
Buildings []AgentMapDataBuilding `json:"buildings" bson:"buildings"`
}
type AgentMapDataBuilding ¶
type AgentMapDataPlayer ¶
type AgentServerConfig ¶
type AgentServerConfig struct {
UpdateOnStart bool `json:"updateOnStart" bson:"updateOnStart"`
Branch string `json:"branch" bson:"branch"`
WorkerThreads int `json:"workerThreads" bson:"workerThreads"`
AutoRestart bool `json:"autoRestart" bson:"autoRestart"`
// Settings for Server Ini files
MaxPlayers int `json:"maxPlayers" bson:"maxPlayers"`
AutoPause bool `json:"autoPause" bson:"autoPause"`
AutoSaveOnDisconnect bool `json:"autoSaveOnDisconnect" bson:"autoSaveOnDisconnect"`
AutoSaveInterval int `json:"autoSaveInterval" bson:"autoSaveInterval"`
DisableSeasonalEvents bool `json:"disableSeasonalEvents" bson:"disableSeasonalEvents"`
}
type AgentStatus ¶
type Agents ¶
type Agents struct {
ID primitive.ObjectID `json:"_id" bson:"_id"`
AgentName string `json:"agentName" bson:"agentName"`
APIKey string `json:"apiKey" bson:"apiKey"`
Status AgentStatus `json:"status" bson:"status"`
Config AgentConfig `json:"config" bson:"config"`
ServerConfig AgentServerConfig `json:"serverConfig" bson:"serverConfig"`
MapData AgentMapData `json:"mapData" bson:"mapData"`
CreatedAt time.Time `json:"createdAt" bson:"createdAt"`
UpdatedAt time.Time `json:"updatedAt" bson:"updatedAt"`
}
type User2FAState ¶
type Users ¶
type Users struct {
ID primitive.ObjectID `json:"_id" bson:"_id"`
Email string `json:"email" bson:"email"`
Password string `json:"-" bson:"password"`
IsAccountAdmin bool `json:"isAccountAdmin" bson:"isAccountAdmin"`
Active bool `json:"active" bson:"active"`
TwoFAState User2FAState `json:"twoFAState" bson:"twoFAState"`
ProfileImageURL string `json:"profileImageUrl" bson:"profileImageUrl"`
CreatedAt time.Time `json:"createdAt" bson:"createdAt"`
UpdatedAt time.Time `json:"updatedAt" bson:"updatedAt"`
}
Click to show internal directories.
Click to hide internal directories.