clients

package
v0.6.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2023 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNatsClient

func NewNatsClient(conf conf.NatsConf) (nc *nats.Conn, err error)

func SetMqttSetOnConnectHandler added in v0.6.0

func SetMqttSetOnConnectHandler(f func(cli mqtt.Client))

Types

type MiniProgram added in v0.5.1

type MiniProgram = miniprogram.MiniProgram

func NewWxMiniProgram added in v0.5.1

func NewWxMiniProgram(ctx context.Context, conf WxMiniProgram, redisConf zeroCache.ClusterConf) *MiniProgram

type MqttClient added in v0.6.0

type MqttClient struct {
	// contains filtered or unexported fields
}

func NewMqttClient

func NewMqttClient(conf *conf.MqttConf) (mcs *MqttClient, err error)

func (MqttClient) Publish added in v0.6.0

func (m MqttClient) Publish(topic string, qos byte, retained bool, payload interface{}) error

func (MqttClient) Subscribe added in v0.6.0

func (m MqttClient) Subscribe(cli mqtt.Client, topic string, qos byte, callback mqtt.MessageHandler) error

type Td

type Td struct {
	Dsn string
	*sql.DB
}

func NewTDengine

func NewTDengine(DataSource string) (TD *Td, err error)

type WxMiniProgram added in v0.5.1

type WxMiniProgram struct {
	Open      bool //如果开启则需要初始化为true
	AppID     string
	AppSecret string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL