Documentation ¶
Index ¶
- Constants
- Variables
- func AssignSocketConn(co *websocket.Conn)
- func BytesToDecoder(b []byte) *json.Decoder
- func KeyDown(in string)
- func KeyUp(in string)
- func PressKey(key string, ms int64)
- func PressLeft()
- func PressNumber1()
- func PressRight()
- func SendMessage(item interface{})
- func StartKeyboard()
- func StartSender()
- type KeyDownMessage
- type KeyUpMessage
Constants ¶
View Source
const KeyDownTime = 100
Variables ¶
View Source
var KeyBoardChanDown = make(chan string)
View Source
var KeyBoardChanUp = make(chan string)
Functions ¶
func AssignSocketConn ¶
AssignSocketConn assigns the connection pointer
func BytesToDecoder ¶
Types ¶
type KeyDownMessage ¶
type KeyDownMessage struct { Conversation string `json:"conversation" bson:"conversation"` Key string `json:"key" bson:"key"` }
KeyDownMessage describes a message to the server
func BuildKeyDownMessage ¶
func BuildKeyDownMessage(key string) KeyDownMessage
BuildKeyDownMessage builds a message object
type KeyUpMessage ¶
type KeyUpMessage struct { Conversation string `json:"conversation" bson:"conversation"` Key string `json:"key" bson:"key"` }
KeyUpMessage describes a message to the server
func BuildKeyUpMessage ¶
func BuildKeyUpMessage(key string) KeyUpMessage
BuildKeyUpMessage builds a message object
Click to show internal directories.
Click to hide internal directories.