communication

package
v0.0.0-...-518c124 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ClearLevelAlarmMessage = "ClearLevelAlarm"

ClearLevelAlarmMessage name

View Source
const FeedPauseMessage = "FeedPause"

FeedPauseMessage name

View Source
const MaintenanceMessage = "Maintenance"

MaintenanceMessage name

View Source
const ResetReminderMessage = "ResetReminder"

ResetReminderMessage name

View Source
const ThunderstormMessage = "Thunderstorm"

ThunderstormMessage name

View Source
const UpdateMessage = "Update"

UpdateMessage name

View Source
const WaterChangeMessage = "WaterChange"

WaterChangeMessage name

Variables

This section is empty.

Functions

This section is empty.

Types

type PublishSession

type PublishSession interface {
	Publish(message string, data string) error
	PublishData(message string, data []byte) error
}

type Session

type Session interface {
	SubscribeSession
	PublishSession
	Close()
}

Session interface

func NewSession

func NewSession(address, token string, log logger.ILog) (Session, error)

NewSession creates a new session

type SubscribeSession

type SubscribeSession interface {
	QueueSubscribe(message string, queue string) (chan string, error)
}

Jump to

Keyboard shortcuts

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