Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Closed chan struct{} Message chan *message.Publish ServerInfo *ServerInfo // contains filtered or unexported fields }
func (*Client) Connect ¶
func (c *Client) Connect(ctx context.Context, options ...ClientOption) error
func (*Client) Disconnect ¶
func (c *Client) Disconnect()
type ClientOption ¶
type ClientOption struct {
// contains filtered or unexported fields
}
func WithBasicAuth ¶
func WithBasicAuth(user, password string) ClientOption
func WithLoginAuth ¶
func WithLoginAuth(user, password string) ClientOption
func WithQoS ¶
func WithQoS(qos message.QoSLevel) ClientOption
func WithRetain ¶
func WithRetain() ClientOption
func WithWill ¶
func WithWill(qos message.QoSLevel, retain bool, topic, payload string, property *message.WillProperty) ClientOption
type ConnectionOption ¶
type ConnectionOption = message.ConnectProperty
type ServerInfo ¶
type ServerInfo = message.ConnAckProperty
Click to show internal directories.
Click to hide internal directories.