package
0.0.0-20200917192850-53883ab13fc3
Repository: https://github.com/unit-io/unitd.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WithDefaultOptions will create client connection with some default values.
WithTLSConfig will set an SSL/TLS configuration to be used when connecting to server.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
ErrServerClosed occurs when a tcp server is closed.
# Structs
Connack represents an connack packet.
Connect represents a connect packet.
Disconnect is to signal you want to cease communications with the server.
FixedHeader.
Info returns Qos and MessageID by the Info() function called on the Packet.
Pingreq is a keepalive.
Pingresp is for saying "hey, the server is alive".
Puback is sent for QOS level one to verify the receipt of a publishQoth the spec: "A PUBACK Packet is sent by a server in response to a PUBLISH Packet from a publishing client, and by a subscriber in response to a PUBLISH Packet from the server.".
Pubcomp is for saying is in response to a pubrel sent by the publisherthe final member of the QOS2 flow.
Publish represents a publish packet.
Pubrec is for verifying the receipt of a publishQoth the spec:"It is the second Packet of the QoS level 2 protocol flow.
Pubrel is a response to pubrec from either the client or server.
Suback is to say "hey, you got it buddy.
Subscribe tells the server which topics the client would like to subscribe to.
TopicQOSTuple is a struct for pairing the Qos and topic togetherfor the QOS' pairs in unsubscribe and subscribe.
Unsuback is to unsubscribe as suback is to subscribe.
Unsubscribe is the Packet to send if you don't want to subscribe to a topic anymore.
# Interfaces
Options it contains configurable options for client.
Packet is the interface all our packets in the line protocol will be implementing.
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
Handler is a callback which get called when a tcp, websocket connection is established or a grpc stream is established.
No description provided by the author
Proto represents the type of connection.
No description provided by the author