event

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceSubServer

type DeviceSubServer struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeviceSubServer

func NewDeviceSubServer(svcCtx *svc.ServiceContext, ctx context.Context) *DeviceSubServer

func (*DeviceSubServer) Config

func (s *DeviceSubServer) Config(topic string, payload []byte) error

Config 设备远程配置

func (*DeviceSubServer) Connected

func (s *DeviceSubServer) Connected(info *devices.DevConn) error

func (*DeviceSubServer) Disconnected

func (s *DeviceSubServer) Disconnected(info *devices.DevConn) error

func (*DeviceSubServer) Gateway added in v0.3.0

func (s *DeviceSubServer) Gateway(topic string, payload []byte) error

Log 设备调试日志

func (*DeviceSubServer) Ota

func (s *DeviceSubServer) Ota(topic string, payload []byte) error

Ota ota远程升级

func (*DeviceSubServer) SDKLog

func (s *DeviceSubServer) SDKLog(topic string, payload []byte) error

Log 设备调试日志

func (*DeviceSubServer) Shadow

func (s *DeviceSubServer) Shadow(topic string, payload []byte) error

Shadow 设备影子

func (*DeviceSubServer) Thing

func (s *DeviceSubServer) Thing(topic string, payload []byte) error

Thing 设备发布物模型消息的信息通过nats转发给内部服务

type InnerSubServer

type InnerSubServer struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewInnerSubServer

func NewInnerSubServer(svcCtx *svc.ServiceContext, ctx context.Context) *InnerSubServer

func (*InnerSubServer) PublishToDev

func (s *InnerSubServer) PublishToDev(topic string, payload []byte) error

Jump to

Keyboard shortcuts

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