stream

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module() fx.Option

func NewPubSub added in v0.0.30

func NewPubSub() *gochannel.GoChannel

Types

type Agent

type Agent struct {
	// contains filtered or unexported fields
}

type HumSensor

type HumSensor struct {
	Client *mqtt.MqttClient
	Agent  *Agent `optional:"true"`
	// contains filtered or unexported fields
}

func CreateHumSens

func CreateHumSens(Client *mqtt.MqttClient, PubSub *gochannel.GoChannel) *HumSensor

func (HumSensor) Close

func (s HumSensor) Close() error

func (HumSensor) GetHum

func (s HumSensor) GetHum(ctx context.Context) float64

func (HumSensor) GetHumObs

func (s HumSensor) GetHumObs() rxgo.Observable

func (*HumSensor) GetMsg added in v0.0.30

func (s *HumSensor) GetMsg() <-chan *message.Message

func (*HumSensor) Sub

func (s *HumSensor) Sub() rxgo.Observable

type TempSensor

type TempSensor struct {
	Client *mqtt.MqttClient
	Agent  *Agent `optional:"true"`
	// contains filtered or unexported fields
}

TempSensor is an interface for temperature sensors

func CreateTempSens

func CreateTempSens(client *mqtt.MqttClient, PubSub *gochannel.GoChannel) *TempSensor

func (TempSensor) Close

func (s TempSensor) Close() error

func (*TempSensor) GetMsg added in v0.0.30

func (s *TempSensor) GetMsg() <-chan *message.Message

func (TempSensor) GetTemp

func (s TempSensor) GetTemp(ctx context.Context) float64

func (TempSensor) GetTempObs

func (s TempSensor) GetTempObs() rxgo.Observable

func (*TempSensor) Sub

func (s *TempSensor) Sub() rxgo.Observable

Jump to

Keyboard shortcuts

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