Documentation
¶
Index ¶
- Variables
- func AbsoluteResourcesPath(a *astilectron.Astilectron, relativeResourcesPath string) string
- func AddToClientMap(id, key string)
- func AddToKeyMap(id, key string)
- func AddToPortMap(port int, status bool)
- func CreateWindow(window []*bootstrap.Window) (win []*astilectron.Window, err error)
- func DeleteFromDB(coloum string, value string) (tx *gorm.DB)
- func ReadFromDB(coloum string, value string) (tx *gorm.DB)
- func RemoveFromClientMap(id string)
- func RemoveFromKeyMap(id string)
- func RemoveFromPortMap(port int)
- func UpdateDBVals(coloum string, value string) (tx *gorm.DB)
- func WriteStructToDB(payload interface{}) (tx *gorm.DB)
- func WriteToDB(info *ClientInfo) (tx *gorm.DB)
- type Agent
- type ClientInfo
- type Dispatch
- type Listener
- type Mail
- type Message
- type NodeStats
- type Nodes
- type Packet
- type PortMap
- type PortMapPacket
- type Profile
- type Resp
- type Room
- type Spell
- type ToClient
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Database Variables ClientIdList []string Status bool ClientList []ClientInfo ClientMap map[string]ClientInfo PortStatus map[int]bool Keys map[string]string DBname = "necro.db" )
View Source
var ( // Server Variables Server *gophersocket.Server Network []*Listener )
View Source
var ( App astilectron.Astilectron AppPtr *astilectron.Astilectron Logger astikit.StdLogger AppOpts bootstrap.Options )
View Source
var ( // Windows Variables WindowOpts []*bootstrap.Window MainWindow *astilectron.Window = nil MainWinCreated bool = false PassWindow *astilectron.Window = nil PassWinCreated bool = false LogWindow *astilectron.Window = nil LogWinCreated bool = false ListenerWindow *astilectron.Window = nil ListenerWinCreated bool = false BuildWindow *astilectron.Window = nil BuildWinCreated bool = false LoginWindow *astilectron.Window = nil LoginWinCreated bool = false )
View Source
var Agents []*Agent
Functions ¶
func AbsoluteResourcesPath ¶
func AbsoluteResourcesPath(a *astilectron.Astilectron, relativeResourcesPath string) string
func AddToClientMap ¶
func AddToClientMap(id, key string)
func AddToKeyMap ¶
func AddToKeyMap(id, key string)
func AddToPortMap ¶
func CreateWindow ¶
func CreateWindow(window []*bootstrap.Window) (win []*astilectron.Window, err error)
func RemoveFromClientMap ¶
func RemoveFromClientMap(id string)
func RemoveFromKeyMap ¶
func RemoveFromKeyMap(id string)
func RemoveFromPortMap ¶
func RemoveFromPortMap(port int)
func WriteStructToDB ¶
func WriteToDB ¶
func WriteToDB(info *ClientInfo) (tx *gorm.DB)
Types ¶
type Agent ¶
type Agent struct {
Name string `json:"name"`
Info *ClientInfo
Channel *gophersocket.Channel
}
type ClientInfo ¶
type ClientInfo struct {
SocketID string `json:"socketid"`
Priv string `json:"priv"`
Version string `json:"version"`
IPAddr string `json:"ipaddr"`
Hostname string `json:"hostname"`
User string `json:"username"`
OS string `json:"os"`
Arch string `json:"arch"`
CPU string `json:"cpu"`
GPU string `json:"gpu"`
Memory string `json:"memory"`
AntiVirus string `json:"antivirus"`
Lang string `json:"lang"`
}
var ClientDBInfo ClientInfo
type NodeStats ¶
type NodeStats struct {
Channels []*gophersocket.Channel
RoomOccupants map[*gophersocket.Channel]int // The Channel and its client count
}
type PortMapPacket ¶
Click to show internal directories.
Click to hide internal directories.