Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BroadcastNotification ¶ added in v0.3.2
BroadcastNotification ...
func (BroadcastNotification) GetMessage ¶ added in v0.3.2
func (bn BroadcastNotification) GetMessage() []byte
func (BroadcastNotification) GetScore ¶ added in v0.3.2
func (bn BroadcastNotification) GetScore() float64
func (BroadcastNotification) IsResend ¶ added in v0.3.2
func (bn BroadcastNotification) IsResend() bool
type Client ¶
type Client struct { Conn *websocket.Conn Pool *Pool ID *users.UserID Token string // contains filtered or unexported fields }
Client ...
type Notification ¶ added in v0.3.2
Notification
type Pool ¶
type Pool struct { Register chan *Client Unregister chan *Client Login chan *Client NotifyUser chan UserNotification Broadcast chan BroadcastNotification Clients map[*Client]bool ClientMapping map[string]*Client Rclient *redis.Client BufferSize int64 }
Pool ...
type UserNotification ¶ added in v0.3.2
UserNotification ...
func (UserNotification) GetMessage ¶ added in v0.3.2
func (un UserNotification) GetMessage() []byte
func (UserNotification) GetScore ¶ added in v0.3.2
func (un UserNotification) GetScore() float64
func (UserNotification) IsResend ¶ added in v0.3.2
func (un UserNotification) IsResend() bool
Click to show internal directories.
Click to hide internal directories.