engine

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewEmitMetaMsg chan types.DataPointMeta = make(chan types.DataPointMeta, 2000)
View Source
var NewEmitMsg chan types.DataPoint = make(chan types.DataPoint, 2000)
View Source
var NewMeta chan []*types.DataPointMeta = make(chan []*types.DataPointMeta)
View Source
var NewMsg chan types.DataMessage = make(chan types.DataMessage, 2000)

Functions

func GetDataPoints

func GetDataPoints() ([]types.VolatileDataPoint, error)

func GetSetting

func GetSetting(key string) (types.KeyValuePair, error)

func InitDataPointMap

func InitDataPointMap()

func InitDispatchers

func InitDispatchers()

func InitMonitor

func InitMonitor()

func InitSetting

func InitSetting(key string, value string, description string) types.KeyValuePair

func NotifySubscribers

func NotifySubscribers(topic string, message interface{})

func PutSetting

func PutSetting(key string, value string)

func RegisterWebsocket

func RegisterWebsocket(c *websocket.Conn)

func SendAlerts

func SendAlerts()

func SendTestAlerts

func SendTestAlerts(recipients string)

func UpdateDataPointMeta

func UpdateDataPointMeta(item *types.DataPointMeta) (err error)

Types

type WebSocketMessage

type WebSocketMessage struct {
	Topic   string      `json:"topic"`
	Message interface{} `json:"message"`
}

websocket connections

Jump to

Keyboard shortcuts

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