Documentation
¶
Index ¶
- Variables
- func NewHdOp(send chan *SendData) *admin
- type Data
- type HdGroup
- func (u *HdGroup) GetStatus() string
- func (u *HdGroup) Kill() (string, error)
- func (u *HdGroup) Restart() (string, error)
- func (u *HdGroup) Run()
- func (u *HdGroup) RunCmd(commd string) (string, error)
- func (u *HdGroup) Send_all_group_msg(msg string, a ...interface{})
- func (u *HdGroup) Send_group_msg(group int, msg string, a ...interface{})
- func (u *HdGroup) Start() (string, error)
- func (u *HdGroup) Stop() (string, error)
- type InstanceConfig
- type MsgData
- type RemoteStatus
- type SendData
- type Server
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type HdGroup ¶
type HdGroup struct { ChGroupMsg chan *MsgData SendChan chan *SendData // contains filtered or unexported fields }
func NewHdGroup ¶
func (*HdGroup) Send_all_group_msg ¶ added in v1.6.7
func (*HdGroup) Send_group_msg ¶
type InstanceConfig ¶ added in v1.6.0
type InstanceConfig struct { Data struct { Status int `json:"status"` Config struct { Nickname string `json:"nickname"` EndTime string `json:"endTime"` ProcessType string `json:"processType"` TerminalOption struct { Pty bool `json:"pty"` } `json:"terminalOption"` PingConfig struct { PingIp string `json:"ip"` } `json:"pingConfig"` } `json:"config"` Info struct { CurrentPlayers string `json:"currentPlayers"` MaxPlayers string `json:"maxPlayers"` Version string `json:"version"` } `json:"info"` } `json:"data"` }
type MsgData ¶
type MsgData struct { Post_type string `json:"post_type"` Message_type string `json:"message_type"` Message_id int `json:"message_id"` User_id int `json:"user_id"` Group_id int `json:"group_id"` Message string `json:"message"` Sender struct { Nickname string `json:"nickname"` } `json:"sender"` Params []string }
type RemoteStatus ¶ added in v1.5.0
type RemoteStatus struct { Data struct { RemoteCount struct { Total int `json:"total"` Available int `json:"available"` } `json:"remoteCount"` Remote []struct { Instance struct { Total int `json:"total"` Running int `json:"running"` } `json:"instance"` System struct { Platform string `json:"platform"` CpuUsage float64 `json:"cpuUsage"` MemUsage float64 `json:"memUsage"` } `json:"system"` Ip string `json:"ip"` Port string `json:"port"` Available bool `json:"available"` Remarks string `json:"remarks"` } `json:"remote"` } `json:"data"` }
Click to show internal directories.
Click to hide internal directories.