Documentation ¶
Index ¶
- Variables
- func NewSensor(ctx context.Context, deps resource.Dependencies, conf resource.Config, ...) (sensor.Sensor, error)
- type ComponentConfig
- type Config
- func (c *Config) Close(ctx context.Context) error
- func (c *Config) Readings(ctx context.Context, extra map[string]interface{}) (map[string]interface{}, error)
- func (c *Config) Ready(ctx context.Context, extra map[string]interface{}) (bool, error)
- func (c *Config) Reconfigure(ctx context.Context, _ resource.Dependencies, conf resource.Config) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Model = resource.NewModel(utils.Namespace, "hwmonitor", "voltages") API = sensor.API PrettyName = "SBC Board Voltage Sensor" Description = "A sensor that reports the voltages of an SBC" Version = utils.Version )
View Source
var (
ErrIgnoredSensor = errors.New("ignored sensor")
)
Functions ¶
Types ¶
type ComponentConfig ¶
type ComponentConfig struct { }
Click to show internal directories.
Click to hide internal directories.