driver

package
v0.0.0-test-multiarch Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseConfig

type BaseConfig struct {
	Name     string `json:"name"`
	Type     string `json:"type"`
	Disabled bool   `json:"disabled,omitempty"`
}

type Driver

type Driver interface {
}

type Factory

type Factory interface {
	New(services Services) service.Lifecycle
}

type RawConfig

type RawConfig struct {
	BaseConfig
	Raw json.RawMessage `json:"-"`
}

func (*RawConfig) MarshalJSON

func (c *RawConfig) MarshalJSON() ([]byte, error)

func (*RawConfig) UnmarshalJSON

func (c *RawConfig) UnmarshalJSON(buf []byte) error

type Services

type Services struct {
	Logger          *zap.Logger
	Node            *node.Node  // for advertising devices
	ClientTLSConfig *tls.Config // for connecting to other smartcore nodes
	HTTPMux         *http.ServeMux
}

Directories

Path Synopsis
Package airthings integrates AirThings devices into Smart Core.
Package airthings integrates AirThings devices into Smart Core.
api
Package api allows interaction with the AirThings API.
Package api allows interaction with the AirThings API.
local
Package local implements a local model of the AirThings api.
Package local implements a local model of the AirThings api.
sample
The sample application uses the AirThings API to pull sensor readings (latest samples) from a named location.
The sample application uses the AirThings API to pull sensor readings (latest samples) from a named location.
rpc
se
wiser-knx
Package wiser_knx contains a driver for Schneider Electric Wiser for KNX lighting controller.
Package wiser_knx contains a driver for Schneider Electric Wiser for KNX lighting controller.
shelly
trv
steinel
hpd
Package xovis contains a driver for camera-based occupancy sensors produced by Xovis.
Package xovis contains a driver for camera-based occupancy sensors produced by Xovis.

Jump to

Keyboard shortcuts

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