Documentation
¶
Index ¶
Constants ¶
View Source
const ( WriteDeadline = 10 * time.Second ReadDeadline = WriteDeadline PongWait = 60 * time.Second PingPeriod = (PongWait * 9) / 10 MessageSize = 4096 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstancePool ¶
type Messenger ¶
type Messenger struct {
Register chan *Instance
Unregister chan *Instance
UnregisterId chan *uuid.UUID
Message chan *Message
// contains filtered or unexported fields
}
func NewMessenger ¶
func NewMessenger() *Messenger
func (*Messenger) MakeInstance ¶
func (*Messenger) SendMessage ¶
type Socket ¶
type Socket interface {
Reader() chan (interface{})
Writer() chan (interface{})
Start(read interface{})
Close()
}
func AcceptSocket ¶
func EstablishSocket ¶
Click to show internal directories.
Click to hide internal directories.