Documentation ¶
Index ¶
- type Client
- func (client *Client) Connect() error
- func (client *Client) Disconnect()
- func (client *Client) Publish(topic string, payload []byte, qos QoS) error
- func (client *Client) Subscribe(topic string, qos QoS) (chan []byte, error)
- func (client *Client) Unsubscribe(topic string) error
- func (client *Client) WithOrderMatters() *Client
- func (client *Client) WithPassword(password string) *Client
- func (client *Client) WithRetry(number int) *Client
- func (client *Client) WithUsername(username string) *Client
- type QoS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Disconnect ¶
func (client *Client) Disconnect()
func (*Client) Unsubscribe ¶
func (*Client) WithOrderMatters ¶ added in v0.4.0
func (*Client) WithPassword ¶
func (*Client) WithUsername ¶
Click to show internal directories.
Click to hide internal directories.