import "code.pfad.fr/fritzgox/internal/paho"
type Client struct {/* contains filtered or unexported fields */}
func Connect(brokerURL string, retained bool) (Client, error)
func (c Client) Close() error
func (p Client) Get(topic string) ([]byte, error)
func (c Client) Publish(topic string, payload []byte) error
func (p Client) Subscribe(topic string, handle func(topic string, payload []byte)) error
func (c Client) Unsubscribe(topic string) error
func (c Client) WithPrefix(topicPrefix string) Client
WithPrefix returns a client with another prefix set.
paho.go