Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BroadcastInfo ¶
type BroadcastInfo struct {
// contains filtered or unexported fields
}
type Client ¶
type Client struct { Send chan interface{} UserId int // contains filtered or unexported fields }
func (*Client) InitReadHandler ¶
func (client *Client) InitReadHandler()
func (*Client) InitWriteHandler ¶
func (client *Client) InitWriteHandler()
type IWebSocketService ¶
type IWebSocketService interface { InitConnection(*websocket.Conn, interface{}) Broadcast(*BroadcastInfo) }
func NewWebSocketService ¶
func NewWebSocketService() IWebSocketService
type WebSocketService ¶
type WebSocketService struct {
// contains filtered or unexported fields
}
func (*WebSocketService) Broadcast ¶
func (service *WebSocketService) Broadcast(broadcastInfo *BroadcastInfo)
func (*WebSocketService) InitConnection ¶
func (service *WebSocketService) InitConnection( connection *websocket.Conn, userData interface{}, )
Click to show internal directories.
Click to hide internal directories.