pubsub

package
v0.0.0-...-9bd9899 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

func PublicRemoteCmd

func PublicRemoteCmd(identifier, cmd string)

func PublishObject

func PublishObject(topic string, obj interface{}) error

func SubscribeControllerIntMetric

func SubscribeControllerIntMetric(topic string) (chan ControllerIntMetric, chan bool)

func SubscribeControllerLogs

func SubscribeControllerLogs(topic string) (chan interface{}, chan bool)

func SubscribeOject

func SubscribeOject(topic string) chan interface{}

Types

type ControllerIntMetric

type ControllerIntMetric struct {
	Type         string  `json:"type"`
	ControllerID string  `json:"controllerID"`
	Key          string  `json:"key"`
	Value        float64 `json:"value"`
}

type ControllerLog

type ControllerLog struct {
	Type         string `json:"type"`
	ControllerID string `json:"controllerID"`
	Module       string `json:"module"`
	Msg          string `json:"msg"`
}

type ControllerStringMetric

type ControllerStringMetric struct {
	Type         string `json:"type"`
	ControllerID string `json:"controllerID"`
	Key          string `json:"key"`
	Value        string `json:"value"`
}

Jump to

Keyboard shortcuts

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