Documentation ¶
Index ¶
- func GinBridge(ctx *gin.Context)
- func Publish(topic string, payload any) (err error)
- func Shutdown() error
- func Startup() error
- type Hook
- func (h *Hook) ID() string
- func (h *Hook) OnACLCheck(cl *mqtt.Client, topic string, write bool) bool
- func (h *Hook) OnConnectAuthenticate(cl *mqtt.Client, pk packets.Packet) bool
- func (h *Hook) OnDisconnect(cl *mqtt.Client, err error, expire bool)
- func (h *Hook) OnSubscribed(cl *mqtt.Client, pk packets.Packet, reasonCodes []byte)
- func (h *Hook) OnUnsubscribed(cl *mqtt.Client, pk packets.Packet)
- func (h *Hook) Provides(b byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Hook ¶
type Hook struct {
mqtt.HookBase
}
func (*Hook) OnConnectAuthenticate ¶
func (*Hook) OnDisconnect ¶
func (*Hook) OnSubscribed ¶
func (*Hook) OnUnsubscribed ¶
Click to show internal directories.
Click to hide internal directories.