sensors

package
v0.15.6-rc.2 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Name string
	// contains filtered or unexported fields
}

func (*Event) Unmarshal

func (e *Event) Unmarshal(target interface{}) error

type Sensor

type Sensor interface {
	On(string, func(Event))
	Emit(string, interface{})
	Reset()
}

func NewSensor

func NewSensor() Sensor

Jump to

Keyboard shortcuts

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