internal

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2025 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Startup

func Startup() error

Types

type Device

type Device struct {
	device.Device `xorm:"extends"`

	Values  map[string]any `json:"values"`
	Updated time.Time      `json:"updated"`
	// contains filtered or unexported fields
}

func GetDevice

func GetDevice(id string) *Device

func (*Device) Open added in v0.2.7

func (d *Device) Open() error

func (*Device) PutValues added in v0.2.7

func (d *Device) PutValues(values map[string]any)

type Validator added in v0.2.9

type Validator struct {
	*product.Validator
	// contains filtered or unexported fields
}

func (*Validator) Build added in v0.2.9

func (v *Validator) Build() (err error)

func (*Validator) Evaluate added in v0.2.9

func (v *Validator) Evaluate(ctx map[string]any) (*alarm.Alarm, error)

Jump to

Keyboard shortcuts

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