Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type ClientManager ¶
type ClientManager struct { Clients map[*Client]bool Broadcast chan []byte Register chan *Client Unregister chan *Client }
func NewClientManager ¶
func NewClientManager() *ClientManager
func (*ClientManager) Handler ¶
func (o *ClientManager) Handler(res http.ResponseWriter, req *http.Request)
func (*ClientManager) Send ¶
func (o *ClientManager) Send(message []byte, ignore *Client)
func (*ClientManager) Start ¶
func (o *ClientManager) Start()
Click to show internal directories.
Click to hide internal directories.