Documentation ¶
Overview ¶
Package config handles the configuration file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Instance ¶
type Instance struct { // TimeSpansActive is set to true if time-span related actions are to be performed. // If false, it is treated as if all TimeSpan entries were disabled. TimeSpansActive bool `json:"time-spans-active"` // TimeSpans contains the list of all configured time span entries. TimeSpans []TimeSpan `json:"time-spans"` }
Instance is the main configuration for the whole alarma application.
type TimeSpan ¶
type TimeSpan struct { // ID uniquely identifies the time span. ID string `json:"id"` // Enabled is set to true to indicate this time span should be active. Enabled bool `json:"enabled"` // From describes the starting time of the time span. Format: "HH:MM". From string `json:"from"` // To describes the stopping time of the time span. Format: "HH:MM". To string `json:"to"` // Path points to the base directory within which audio files are to be searched. Path string `json:"path"` }
TimeSpan describes one action.
Click to show internal directories.
Click to hide internal directories.