package
Version:
v1.7.2
Opens a new window with list of versions in this module.
Published: Oct 15, 2021
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Cron struct {
Jobs []*CronJob
}
type CronJob struct {
Spec string `validate:"required"`
WithLightSwitch bool
LightState bool
WithPhoto bool
}
MarshalText implements encoding.TextMarshaler
UnmarshalText implements encoding.TextUnmarshaler
type GPIO struct {
LightPin string `validate:"required"`
}
type Raspistill struct {
Quality uint8 `validate:"min=1,max=100"`
Timeout Duration `validate:"required"`
}
type Sentry struct {
DNS string `validate:"required,url"`
Timeout Duration `validate:"required"`
}
type Telegram struct {
BotToken string `validate:"required"`
ChatID int64 `validate:"required"`
ClientTimeout Duration `validate:"required"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.