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