Documentation ¶
Index ¶
- Variables
- func CloseRobots()
- func Msg2Robots(code string, num int64)
- func RemoveN(c byte, cs []byte, n int) []byte
- func RunRobot(host, port, phone, code string, msgCh chan interface{})
- func Start(host, port string)
- type Login
- type Logout
- type Message
- type Robot
- func (this *Robot) Close()
- func (this *Robot) Closed()
- func (this *Robot) Logined()
- func (this *Robot) Reader()
- func (this *Robot) RecvMsg()
- func (c *Robot) SendBroken()
- func (c *Robot) SendCreate()
- func (c *Robot) SendDiscard()
- func (c *Robot) SendDiscard2()
- func (c *Robot) SendEntry()
- func (c *Robot) SendHu()
- func (c *Robot) SendLeave()
- func (c *Robot) SendLogin()
- func (c *Robot) SendMaizi()
- func (c *Robot) SendOperate(card uint32, value int64)
- func (c *Robot) SendReady()
- func (c *Robot) SendRegist()
- func (c *Robot) SendUserData()
- func (this *Robot) Sender(packet interfacer.IProto)
- type RobotData
- type Robots
Constants ¶
This section is empty.
Variables ¶
View Source
var RobotsCh chan interface{}
通道
Functions ¶
Types ¶
type Robot ¶
type Robot struct {
// contains filtered or unexported fields
}
机器人连接数据
func (*Robot) Sender ¶
func (this *Robot) Sender(packet interfacer.IProto)
发送请求 TODO:concurrent write to websocket connection
type RobotData ¶
type RobotData struct { Id uint32 `csv:"id"` Kind uint32 `csv:"kind"` Changci uint32 `csv:"changci"` Nickname string `csv:"nickname"` Sex uint32 `csv:"sex"` Level uint32 `csv:"level"` Coin uint32 `csv:"coin"` Diamond uint32 `csv:"diamond"` Cointime uint32 `csv:"cointime"` Coinup uint32 `csv:"coinup"` Vip uint32 `csv:"vip"` Headframe uint32 `csv:"headframe"` Phone string `csv:"phone"` }
func GetRobotList ¶
func GetRobotList() []RobotData
Click to show internal directories.
Click to hide internal directories.