Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MQTTEventSender ¶
type MQTTEventSender[T any] struct { Cfg autopaho.ClientConfig // contains filtered or unexported fields }
func NewMQTTEventSender ¶
func NewMQTTEventSender[T any](broker *url.URL, clientId string) *MQTTEventSender[T]
func (*MQTTEventSender[T]) Connect ¶
func (m *MQTTEventSender[T]) Connect(ctx context.Context) error
func (*MQTTEventSender[T]) Disconnect ¶
func (m *MQTTEventSender[T]) Disconnect(ctx context.Context) error
type MultiEventSender ¶
type MultiEventSender[T any] struct { // contains filtered or unexported fields }
func NewMultiEventSender ¶
func NewMultiEventSender[T any](senders ...Sender[T]) *MultiEventSender[T]
type Subscriber ¶
type WebsocketEventService ¶
type WebsocketEventService[T any] struct { // contains filtered or unexported fields }
func NewWebsocketEventService ¶
func NewWebsocketEventService[T any]() *WebsocketEventService[T]
func (*WebsocketEventService[T]) Subscribe ¶
func (e *WebsocketEventService[T]) Subscribe(t ...api.EventType) chan interface{}
Click to show internal directories.
Click to hide internal directories.