iot

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IOTMessage

type IOTMessage struct {
	Type string      `json:"type"`
	What string      `json:"what"`
	Data interface{} `json:"data"`
}

type IOTWorker

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

func NewIOTWorker

func NewIOTWorker(ws *websocket.Conn, ctx types.LoggerContext) *IOTWorker

func (*IOTWorker) AcceptMessage

func (iot *IOTWorker) AcceptMessage(message []byte) error

func (*IOTWorker) PushMessage

func (iot *IOTWorker) PushMessage(message *websocket.PreparedMessage, ok bool) error

func (*IOTWorker) Run

func (iot *IOTWorker) Run()

Jump to

Keyboard shortcuts

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