output

package
v0.0.0-...-9942e84 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BindingValue

type BindingValue struct {
	Timestamp time.Time
	Value     string
	SensorID  string
	DeviceID  string
}

type ChannelOutputBinding

type ChannelOutputBinding struct {
	Channel chan BindingValue
}

func NewChannelOutput

func NewChannelOutput() *ChannelOutputBinding

func (ChannelOutputBinding) Handle

func (b ChannelOutputBinding) Handle(value BindingValue)

type OutputBinding

type OutputBinding interface {
	Handle(value BindingValue)
}

type OutputBindingsManager

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

func NewManager

func NewManager() *OutputBindingsManager

func (*OutputBindingsManager) Push

func (m *OutputBindingsManager) Push(val BindingValue)

func (*OutputBindingsManager) Register

func (m *OutputBindingsManager) Register(binding OutputBinding)

type WebsocketBinding

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

func NewWebsocketBinding

func NewWebsocketBinding(router *gin.Engine) *WebsocketBinding

func (*WebsocketBinding) Handle

func (b *WebsocketBinding) Handle(value BindingValue)

Jump to

Keyboard shortcuts

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