Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Broadcast = make(chan WebSocketResult)
View Source
var Clients = make(map[*WebSocket]bool)
channel定義(websocketで使用)
Functions ¶
This section is empty.
Types ¶
type FirstInput ¶
type WebSocketChatResponse ¶
type WebSocketResult ¶
type WebSocketResult struct { ID uint `json:"id"` Err string `json:"error"` CreatedAt time.Time `json:"created_at"` TicketID uint `json:"ticket_id"` UserToken string `json:"user_token"` AccessToken string `json:"access_token"` UserID uint `json:"user_id"` UserName string `json:"user_name"` GroupID uint `json:"group_id"` Admin bool `json:"admin"` Message string `json:"message"` }
websocket用
Click to show internal directories.
Click to hide internal directories.