MCPcopy Create free account

hub / github.com/jeffallen/mqtt / functions

Functions65 in github.com/jeffallen/mqtt

↓ 23 callersMethodString
()
mqtt.go:469
↓ 13 callersMethodsubmit
Queue a message; no notification of sending is done.
mqtt.go:459
↓ 6 callersMethodConnect
Connect sends the CONNECT message to the server. If the ClientId is not already set, use a default (a 63-bit decimal random number). The "clean sessio
mqtt.go:818
↓ 6 callersMethodDisconnect
Disconnect sends a DISCONNECT message to the server. This function blocks until the disconnect message is actually sent, and the connection is closed.
mqtt.go:855
↓ 6 callersMethodPublish
Publish publishes the given message to the MQTT server. The QosLevel of the message must be QosAtLeastOnce for now.
mqtt.go:880
↓ 6 callersMethodSubscribe
Subscribe subscribes this connection to a list of topics. Messages will be delivered on the Incoming channel.
mqtt.go:868
↓ 5 callersFunctionstatsMessage
(topic string, stat int64)
mqtt.go:48
↓ 4 callersFunctionisWildcard
(topic string)
mqtt.go:686
↓ 3 callersMethodWritePayload
(w io.Writer)
mqtt.go:89
↓ 3 callersMethodadd
Add this connection to the map, or find out that an existing connection already exists for the same client-id.
mqtt.go:436
↓ 3 callersFunctionconnect
()
pingtest/main.go:198
↓ 3 callersMethodsync
sync sends a message and blocks until it was actually sent.
mqtt.go:889
↓ 2 callersMethodStart
Start makes the Server start accepting and handling connections.
mqtt.go:371
↓ 2 callersFunctionconnect
(who string)
loadtest/main.go:117
↓ 2 callersFunctionheader
header is used to initialize a proto.Header when the zero value is not correct. The zero value of proto.Header is the equivalent of header(dupFalse, p
mqtt.go:670
↓ 2 callersMethodmatches
(parts []string)
mqtt.go:174
↓ 2 callersFunctionnewWild
(topic string, c *incomingConn)
mqtt.go:170
↓ 2 callersMethodnextid
()
mqtt.go:860
↓ 2 callersMethodvalid
()
mqtt.go:693
↓ 1 callersMethodSize
()
mqtt.go:93
↓ 1 callersMethodadd
(sample time.Duration)
pingtest/main.go:34
↓ 1 callersMethodcalculate
()
pingtest/main.go:41
↓ 1 callersFunctionclient
(i int)
many/main.go:57
↓ 1 callersMethodclientConnect
()
mqtt.go:45
↓ 1 callersMethodclientDisconnect
()
mqtt.go:46
↓ 1 callersMethoddel
Delete a connection; the connection must be closed by the caller first.
mqtt.go:451
↓ 1 callersMethodmessageRecv
()
mqtt.go:43
↓ 1 callersMethodmessageSend
()
mqtt.go:44
↓ 1 callersMethodnewIncomingConn
newIncomingConn creates a new incomingConn associated with this server. The connection becomes the property of the incomingConn and should not be touc
mqtt.go:406
↓ 1 callersFunctionnewIntPayload
(i int64)
mqtt.go:82
↓ 1 callersFunctionnewSubscriptions
(workers int)
mqtt.go:122
↓ 1 callersFunctionping
(i int)
pingtest/main.go:111
↓ 1 callersFunctionpub
(i int)
loadtest/main.go:86
↓ 1 callersMethodpublish
(sub *subscriptions, interval time.Duration)
mqtt.go:56
↓ 1 callersFunctionreadCert
See http://mosquitto.org/man/mosquitto-tls-7.html for how to make the server.{crt,key} files. Then use mosquitto like this to talk to it: mosquitto_s
smqttsrv/main.go:17
↓ 1 callersMethodreader
()
mqtt.go:481
↓ 1 callersMethodreader
()
mqtt.go:740
↓ 1 callersMethodrun
The subscription processing worker.
mqtt.go:270
↓ 1 callersMethodsendRetain
(topic string, c *incomingConn)
mqtt.go:135
↓ 1 callersMethodstart
Start reading and writing on this connection.
mqtt.go:429
↓ 1 callersFunctionsub
(i int, wg *sync.WaitGroup)
loadtest/main.go:143
↓ 1 callersMethodsubmitSync
Queue a message, returns a channel that will be readable when the message is sent.
mqtt.go:475
↓ 1 callersMethodsubscribers
Find all connections that are subscribed to this topic.
mqtt.go:204
↓ 1 callersMethodunsub
Remove the subscription to topic for a given connection.
mqtt.go:246
↓ 1 callersMethodunsubAll
Remove all subscriptions that refer to a connection.
mqtt.go:223
↓ 1 callersMethodwait
Wait for the receipt to indicate that the job is done.
mqtt.go:418
↓ 1 callersMethodwriter
()
mqtt.go:622
↓ 1 callersMethodwriter
()
mqtt.go:785
↓ 1 callersFunctionwsub
()
pingtest/main.go:221
FunctionNewClientConn
NewClientConn allocates a new ClientConn.
mqtt.go:725
FunctionNewServer
NewServer creates a new MQTT server, which accepts connections from the given listener. When the server is stopped (for instance by another goroutine
mqtt.go:344
MethodReadPayload
(r io.Reader)
mqtt.go:85
FunctionTestWild
(t *testing.T)
wild_test.go:8
Methodadd
(topic string, c *incomingConn)
mqtt.go:152
Functioninit
()
mqtt.go:25
Functioninit
()
loadtest/main.go:110
Functionmain
()
pingtest/main.go:55
Functionmain
()
sub/main.go:19
Functionmain
()
loadtest/main.go:25
Functionmain
()
mqttsrv/main.go:13
Functionmain
()
pub/main.go:20
Functionmain
()
many/main.go:26
Functionmain
()
ticktock/main.go:22
Functionmain
()
smqttsrv/main.go:25
Methodsubmit
(c *incomingConn, m *proto.Publish)
mqtt.go:319