downlink

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(fetchSize int, idleTime time.Duration)

Types

type MessageDownLinkEngine

type MessageDownLinkEngine interface {
	StartDownLink()
	SaveMessage(data model.EventPayload) error                                                     // 保存消息
	ActiveDelayedMessage(appId string, deviceId string)                                            // 激活消息,准备发送
	PullDelayedMessage(appId string, deviceId string) (eventPayload model.EventPayload, err error) // 查询设备消息
	CloseExpiredDelayedMessages()                                                                  // 关闭过期的消息
}

func GetInstance

func GetInstance() *MessageDownLinkEngine

Jump to

Keyboard shortcuts

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