Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { String() string Hello() TrySend(msg *NotificationTask) bool Disconnect() }
type Dispatcher ¶
type Dispatcher struct {
// contains filtered or unexported fields
}
func NewDispatcher ¶
func NewDispatcher() *Dispatcher
func (*Dispatcher) Dispatch ¶
func (d *Dispatcher) Dispatch(user string, payload []byte)
func (*Dispatcher) Run ¶
func (d *Dispatcher) Run()
type NotificationTask ¶
func NewNotificationTask ¶
func NewNotificationTask(id uint64, user string, payload []byte) *NotificationTask
Click to show internal directories.
Click to hide internal directories.