Documentation
¶
Index ¶
- func NewMemoryStore(config *Config, f func(*packets.PublishPacket), df func(interface{})) *memoryStore
- type Config
- type IStore
- type Session
- func (s *Session) AddTopic(topic string, qos byte) error
- func (s *Session) ConnID() string
- func (s *Session) Free()
- func (s *Session) ID() string
- func (s *Session) Inflight() ipq.IPQ
- func (s *Session) PushBackOT(packet *packets.PublishPacket)
- func (s *Session) PushBackZ(packet *packets.PublishPacket)
- func (s *Session) RemoveTopic(topic string) error
- func (s *Session) Topics() ([]string, []byte, error)
- func (s *Session) UpdateConnID(connID string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMemoryStore ¶
func NewMemoryStore(config *Config, f func(*packets.PublishPacket), df func(interface{})) *memoryStore
Types ¶
type Session ¶
type Session struct { // for qos 0 ZQueue *list.List ZQueueLen int // for qos 1, 2 OTQueue *list.List OTQueueLen int // contains filtered or unexported fields }
func (*Session) PushBackOT ¶
func (s *Session) PushBackOT(packet *packets.PublishPacket)
func (*Session) PushBackZ ¶
func (s *Session) PushBackZ(packet *packets.PublishPacket)
func (*Session) RemoveTopic ¶
func (*Session) UpdateConnID ¶
Click to show internal directories.
Click to hide internal directories.