Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct { ID string // contains filtered or unexported fields }
Channel struct
type ChannelManager ¶
type ChannelManager struct {
// contains filtered or unexported fields
}
ChannelManager struct
func (*ChannelManager) Get ¶
func (c *ChannelManager) Get(ID string) (*Channel, bool)
Get channel by id
func (*ChannelManager) Remove ¶
func (c *ChannelManager) Remove(channel *Channel)
Remove channel to manager
type Client ¶
type Client struct { ID string // contains filtered or unexported fields }
Client struct
type ClientManager ¶
type ClientManager struct {
// contains filtered or unexported fields
}
ClientManager struct
func (*ClientManager) Remove ¶
func (c *ClientManager) Remove(client *Client)
Remove client to manager
type ErrorHandler ¶
type ErrorHandler func(w http.ResponseWriter, code int, err error)
ErrorHandler func
type Pusher ¶
type Pusher struct { ErrorHandler ErrorHandler // contains filtered or unexported fields }
Pusher struct
func (*Pusher) JoinChannel ¶
JoinChannel added client to channel
func (*Pusher) LeaveChannel ¶
LeaveChannel removed client to channel
Source Files ¶
Click to show internal directories.
Click to hide internal directories.