mq

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

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

Go to latest
Published: Nov 16, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StreamVideo          = "VIDEO"
	SubjectVideo         = "video"
	SubjectGetDeviceInfo = "GetDeviceInfo"
	GroupVideo           = "video-group"
)

video subject

View Source
const (
	StreamDevice                 = "DEVICE"
	StreamDeviceData             = "DEVICE_DATA"
	StreamDeviceTelemetry        = "DEVICE_TELEMETRY"
	StreamDeviceHealth           = "DEVICE_HEALTH"
	SubjectDevicPrefix           = "device."
	SubjectDeviceData            = "device_data"
	SubjectDeviceTelemetryPrefix = "device.telemetry."
	SubjectDeviceHealthPrefix    = "device.health."
	GroupDevice                  = "group.device"
	GroupSaveDeviceData          = "group.device.data.save"
	GroupPublishDeviceData       = "group.device.data.pub"
)

device subject

Variables

This section is empty.

Functions

func GetClient

func GetClient() *nats.Conn

GetClient get mq connection

func GetJetStream

func GetJetStream() (nats.JetStreamContext, error)

GetClient get mq connection

Types

This section is empty.

Jump to

Keyboard shortcuts

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