c1_mqttPublish

package
v0.0.0-...-63b2ac5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2019 License: GPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	XPublishBootargs = new(PublishBootArgs)
)

Functions

func NewPublisher

func NewPublisher(mc mqtt.Client) *publisher

func PublishMain

func PublishMain()

向mqtt服务器订阅监控某一个客户端消息,等待客户端状态消息上报.

Types

type ProxyMemStore

type ProxyMemStore struct {
	// contains filtered or unexported fields
}

func (*ProxyMemStore) All

func (p *ProxyMemStore) All() []string

func (*ProxyMemStore) Close

func (p *ProxyMemStore) Close()

func (*ProxyMemStore) Del

func (p *ProxyMemStore) Del(key string)

func (*ProxyMemStore) Get

func (*ProxyMemStore) Open

func (p *ProxyMemStore) Open()

func (*ProxyMemStore) Put

func (p *ProxyMemStore) Put(key string, message packets.ControlPacket)

func (*ProxyMemStore) Reset

func (p *ProxyMemStore) Reset()

type PublishBootArgs

type PublishBootArgs struct {
	MqttHostAddr string
	MqttHostPort int
	MqttTopic    string
	MqttQos      byte
}

func (PublishBootArgs) ExecFunc

func (PublishBootArgs) ExecFunc() func()

func (PublishBootArgs) FlagDefine

func (PublishBootArgs) FlagDefine() func(xflag *flag.FlagSet)

func (*PublishBootArgs) String

func (receiver *PublishBootArgs) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL