Debian Codegraph @

pkg/services/push/mqtt/mqtt_connection_manager.go

raw symbols SCIP
1 package mqttscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/mqtt`/
2
3 import (
4 "contextscip-go gomod github.com/golang/go/src . context/"
5
6 "github.com/eclipse/paho.golang/pahoscip-go gomod github.com/eclipse/paho.golang v0.23.0 `github.com/eclipse/paho.golang/paho`/"
7 )
8
9 // ConnectionManager defines the interface for MQTT connection management.
10 type ConnectionManagerscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/mqtt`/ConnectionManager# interface {
11 // AwaitConnection waits for the MQTT connection to be established.
12 // It blocks until the connection is ready or the context is canceled.
13 AwaitConnectionscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/mqtt`/ConnectionManager#AwaitConnection.(ctx contextscip-go gomod github.com/golang/go/src . context/.Contextscip-go gomod github.com/golang/go/src . context/Context#) error
14
15 // Publish sends an MQTT message to the broker.
16 // Returns a PublishResponse containing the reason code and any properties,
17 // or an error if the publish operation fails.
18 Publishscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/mqtt`/ConnectionManager#Publish.(ctx contextscip-go gomod github.com/golang/go/src . context/.Contextscip-go gomod github.com/golang/go/src . context/Context#, publish *pahoscip-go gomod github.com/eclipse/paho.golang v0.23.0 `github.com/eclipse/paho.golang/paho`/.Publishscip-go gomod github.com/eclipse/paho.golang v0.23.0 `github.com/eclipse/paho.golang/paho`/Publish#) (*pahoscip-go gomod github.com/eclipse/paho.golang v0.23.0 `github.com/eclipse/paho.golang/paho`/.PublishResponsescip-go gomod github.com/eclipse/paho.golang v0.23.0 `github.com/eclipse/paho.golang/paho`/PublishResponse#, error)
19
20 // Disconnect gracefully closes the MQTT connection.
21 // It sends a DISCONNECT packet to the broker and waits for the operation
22 // to complete or the context to be canceled.
23 Disconnectscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/mqtt`/ConnectionManager#Disconnect.(ctx contextscip-go gomod github.com/golang/go/src . context/.Contextscip-go gomod github.com/golang/go/src . context/Context#) error
24 }