mirror of
https://gitee.com/winc-link/hummingbird.git
synced 2025-04-21 17:02:43 +00:00
15 lines
331 B
Go
15 lines
331 B
Go
package mqttclient
|
|
|
|
import (
|
|
"context"
|
|
"github.com/winc-link/hummingbird/internal/dtos"
|
|
)
|
|
|
|
type MQTTClient interface {
|
|
RegisterConnectCallback(dtos.ConnectHandler)
|
|
RegisterDisconnectCallback(dtos.CallbackHandler)
|
|
AsyncPublish(ctx context.Context, topic string, payload []byte, isSync bool)
|
|
Close()
|
|
GetConnectStatus() bool
|
|
}
|