Documentation
¶
Index ¶
- type Handler
- func (h *Handler) AuthConnect(c *session.Client) error
- func (h *Handler) AuthPublish(c *session.Client, topic *string, payload *[]byte) error
- func (h *Handler) AuthSubscribe(c *session.Client, topics *[]string) error
- func (h *Handler) Connect(c *session.Client)
- func (h *Handler) Disconnect(c *session.Client)
- func (h *Handler) Publish(c *session.Client, topic *string, payload *[]byte)
- func (h *Handler) Subscribe(c *session.Client, topics *[]string)
- func (h *Handler) Unsubscribe(c *session.Client, topics *[]string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler implements mqtt.Handler interface
func (*Handler) AuthConnect ¶
AuthConnect is called on device connection, prior forwarding to the MQTT broker
func (*Handler) AuthPublish ¶
AuthPublish is called on device publish, prior forwarding to the MQTT broker
func (*Handler) AuthSubscribe ¶
AuthSubscribe is called on device publish, prior forwarding to the MQTT broker
func (*Handler) Disconnect ¶
Disconnect on conection lost
Click to show internal directories.
Click to hide internal directories.