Documentation ¶
Index ¶
- type Option
- type QoS1Handle
- type QoS2Handle
- type Topic
- type Topics
- func (t *Topics) Close() error
- func (t *Topics) CreateTopic(topicName string, option *proto.SubOption)
- func (t *Topics) DeleteTopic(topicName string)
- func (t *Topics) HandelPublishComp(topic string, pubcomp *packets.Pubcomp)
- func (t *Topics) HandlePublishAck(topic string, puback *packets.Puback)
- func (t *Topics) HandlePublishRec(topic string, pubrec *packets.Pubrec)
- func (t *Topics) Publish(topic string, message *packet.PublishMessage) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(topics *Topics)
func WithWindowSize ¶
func WithWriter ¶
func WithWriter(writer broker.PublishWriter) Option
type QoS1Handle ¶
type QoS2Handle ¶
type Topics ¶
type Topics struct {
// contains filtered or unexported fields
}
func NewTopicWithSession ¶
func (*Topics) CreateTopic ¶
func (*Topics) DeleteTopic ¶
func (*Topics) HandelPublishComp ¶
func (*Topics) HandlePublishAck ¶
func (*Topics) HandlePublishRec ¶
Click to show internal directories.
Click to hide internal directories.