Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a middleman between the websocket connection and the hub.
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
Hub maintains the set of active clients and broadcasts messages to the clients
func (*Hub) ProcessRedisMessage ¶
Processes an incoming message from Redis
func (*Hub) Send ¶
func (h *Hub) Send(msg encoding.BinaryMarshaler)
Sends a message to all of our clients
type SocketMessage ¶
type SocketMessage struct {
// contains filtered or unexported fields
}
SocketMessage stores messages sent over WS with the client who sent it
func (SocketMessage) MarshalBinary ¶
func (m SocketMessage) MarshalBinary() ([]byte, error)
func (SocketMessage) UnmarshalBinary ¶
func (m SocketMessage) UnmarshalBinary(data []byte) error
Click to show internal directories.
Click to hide internal directories.