Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PushHandler ¶
type PushHandler interface { // Initialize the handler Init(jsonconf string) error // Check if the handler is initialized IsReady() bool // Push returns a channel that the server will use to send messages to. // The message will be dropped if the channel blocks. Push() chan<- *Receipt // Stop operations Stop() }
PushHandler is an interface which must be implemented by handlers.
type PushTo ¶
type PushTo struct { // Addresse User t.Uid `json:"user"` // Count of user's connections that were live when the packet was dispatched from the server Delieved int `json:"delivered"` // List of user's devices that the packet was delivered to (if known). Len(Devices) >= Delivered Devices []string `json:"devices,omitempty"` }
Click to show internal directories.
Click to hide internal directories.