Documentation ¶
Index ¶
- func BuildContainer() (container *dig.Container)
- func NewBackupConfig(cfg *models.AppConfig) *backup.BackupConfig
- func NewMigrationsConfig() *migrations.Config
- func NewMqtt(authenticator mqtt_authenticator.MqttAuthenticator) mqtt.MqttServ
- func NewMqttCli() mqtt.MqttCli
- func NewOrmConfig(cfg *models.AppConfig) *orm.Config
- func NewZigbee2mqttConfig(cfg *models.AppConfig) *zigbee2mqtt.Config
- type Dialer
- type FxNull
- type Mqtt
- func (m Mqtt) Admin() mqtt.Admin
- func (m Mqtt) Authenticator() mqtt_authenticator.MqttAuthenticator
- func (m Mqtt) NewClient(name string) mqtt.MqttCli
- func (m Mqtt) Publish(topic string, payload []byte, qos uint8, retain bool) error
- func (m Mqtt) RemoveClient(name string)
- func (m Mqtt) Shutdown() error
- func (m Mqtt) Start()
- type MqttCli
- func (m MqttCli) OnMsgArrived(ctx context.Context, client server.Client, req *server.MsgArrivedRequest)
- func (m MqttCli) Publish(topic string, payload []byte) error
- func (m MqttCli) Subscribe(topic string, handler mqtt.MessageHandler) error
- func (m MqttCli) Unsubscribe(topic string)
- func (m MqttCli) UnsubscribeAll()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBackupConfig ¶
func NewBackupConfig(cfg *models.AppConfig) *backup.BackupConfig
NewBackupConfig ...
func NewMqtt ¶ added in v0.5.2
func NewMqtt(authenticator mqtt_authenticator.MqttAuthenticator) mqtt.MqttServ
NewMqtt ...
func NewZigbee2mqttConfig ¶
func NewZigbee2mqttConfig(cfg *models.AppConfig) *zigbee2mqtt.Config
NewZigbee2mqttConfig ...
Types ¶
type Mqtt ¶ added in v0.5.2
type Mqtt struct {
// contains filtered or unexported fields
}
Mqtt ...
func (Mqtt) Authenticator ¶ added in v0.5.2
func (m Mqtt) Authenticator() mqtt_authenticator.MqttAuthenticator
Authenticator ...
type MqttCli ¶ added in v0.5.2
type MqttCli struct { }
MqttCli ...
func (MqttCli) OnMsgArrived ¶ added in v0.5.2
func (m MqttCli) OnMsgArrived(ctx context.Context, client server.Client, req *server.MsgArrivedRequest)
OnMsgArrived ...
func (MqttCli) Subscribe ¶ added in v0.5.2
func (m MqttCli) Subscribe(topic string, handler mqtt.MessageHandler) error
Subscribe ...
func (MqttCli) Unsubscribe ¶ added in v0.5.2
Unsubscribe ...
func (MqttCli) UnsubscribeAll ¶ added in v0.5.2
func (m MqttCli) UnsubscribeAll()
UnsubscribeAll ...
Click to show internal directories.
Click to hide internal directories.