internal

package
v3.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Applications lib.Map[model.App]
View Source
var Devices lib.Map[Device]
View Source
var Products lib.Map[Product]

Functions

func Close

func Close()

func LoadDevice

func LoadDevice(device *model.Device) error

func LoadDeviceById

func LoadDeviceById(id string) error

func LoadProduct

func LoadProduct(product *model.Product) error

func LoadProducts

func LoadProducts() error

func Open

func Open() error

func ProxyApp added in v3.0.1

func ProxyApp(ctx *gin.Context)

Types

type Device

type Device struct {
	Id     string
	Online bool
	Last   time.Time
	Values map[string]any
	// contains filtered or unexported fields
}

func GetDevice added in v3.0.4

func GetDevice(id string) (*Device, error)

func NewDevice

func NewDevice(id string) *Device

func (*Device) Constrain

func (d *Device) Constrain()

type Plugin

type Plugin struct {
	Id      string
	Process *os.Process
}

type Product

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

Jump to

Keyboard shortcuts

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