Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
func (*Redis) BroadcastFromBackend ¶
func (r *Redis) BroadcastFromBackend(b chan<- *gosock.BroadcastMsg)
BroadcastFromBackend is called once and only once as a go routine as soon as the MultihomeBackend is registered using SocketServer.SetMultihomeBackend
b consumes a BroadcastMsg and dispatches it to all sockets on this server
func (*Redis) BroadcastToBackend ¶
func (r *Redis) BroadcastToBackend(b *gosock.BroadcastMsg)
BroadcastToBackend is called everytime a BroadcastMsg is sent by a Socket
BroadcastToBackend must be safe for concurrent use by multiple go routines
func (*Redis) RoomcastFromBackend ¶
RoomcastFromBackend is called once and only once as a go routine as soon as the MultihomeBackend is registered using SocketServer.SetMultihomeBackend
r consumes a RoomMsg and dispatches it to all sockets that are members the specified room
func (*Redis) RoomcastToBackend ¶
RoomcastToBackend is called everytime a RoomMsg is sent by a socket, even if none of this server's sockets are members of that room
RoomcastToBackend must be safe for concurrent use by multiple go routines