Documentation
¶
Index ¶
Constants ¶
View Source
const PING = "ping"
View Source
const PONG = "pong"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelManager ¶
type ChannelManager struct {
// contains filtered or unexported fields
}
func NewChannelManager ¶
func NewChannelManager() *ChannelManager
func (ChannelManager) Close ¶
func (c ChannelManager) Close(id uint32)
func (ChannelManager) Flush ¶
func (c ChannelManager) Flush()
func (ChannelManager) GetChannels ¶
func (c ChannelManager) GetChannels() map[uint32]chan []byte
func (*ChannelManager) Make ¶
func (_ *ChannelManager) Make(length uint32) chan []byte
type HasHeartbeatInterface ¶
type HasHeartbeatInterface interface {
IsHeartbeat() bool
}
type IdGenerator ¶
type IdGenerator struct {
// contains filtered or unexported fields
}
func (*IdGenerator) Generate ¶
func (i *IdGenerator) Generate() uint32
type IdGeneratorInterface ¶
type IdGeneratorInterface interface {
Generate() uint32
}
type PackerInterface ¶
type Packet ¶
type Packet struct {
// contains filtered or unexported fields
}
func (*Packet) IsHeartbeat ¶
Click to show internal directories.
Click to hide internal directories.