redis

package
v0.0.0-...-e7fb4c3 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddID

func AddID(id string)

AddID add a controller to the list

func InitRedis

func InitRedis()

InitRedis init the redis connection

func SendRedisEventLog

func SendRedisEventLog(l mqttparser.Log)

func SendRedisKeyValueLog

func SendRedisKeyValueLog(kvl mqttparser.KeyValueLog)

SendRedisKeyValueLog update a key value for a controller

func SetLastSeen

func SetLastSeen(id string)

SetLastSeen updates the last_seen key for a controller

func SubscribeRemoteCmdChannel

func SubscribeRemoteCmdChannel() chan RemoteCmd

Types

type RemoteCmd

type RemoteCmd struct {
	ControllerID string
	Cmd          string
}

Jump to

Keyboard shortcuts

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