Documentation
¶
Index ¶
- func InitialModel() model
- type Config
- func (c *Config) AddQuery(newQuery QueryConfig)
- func (c *Config) DeleteQueryByIndex(index int)
- func (c *Config) GetQueryNames() []string
- func (c *Config) LoadFromFile(filename string) error
- func (c Config) SaveToFile(filename string) error
- func (c *Config) UpdateDB(newDB DatabaseConfig)
- func (c *Config) UpdateQuery(index int, newQuery QueryConfig)
- func (c *Config) UpdateSettings(newSettings *Config)
- type DatabaseConfig
- type QueryConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitialModel ¶
func InitialModel() model
Types ¶
type Config ¶
type Config struct {
Database DatabaseConfig `json:"database"`
Queries []QueryConfig `json:"queries"`
BaseNotificationURL string `json:"baseNotificationUrl"`
NotificationMessage string `json:"notificationMessage"`
CheckIntervalSeconds int `json:"checkIntervalSeconds"`
}
func NewDefaultConfig ¶
func NewDefaultConfig() Config
func (*Config) AddQuery ¶
func (c *Config) AddQuery(newQuery QueryConfig)
func (*Config) DeleteQueryByIndex ¶
func (*Config) GetQueryNames ¶
func (*Config) LoadFromFile ¶
func (Config) SaveToFile ¶
func (*Config) UpdateDB ¶
func (c *Config) UpdateDB(newDB DatabaseConfig)
func (*Config) UpdateQuery ¶
func (c *Config) UpdateQuery(index int, newQuery QueryConfig)
func (*Config) UpdateSettings ¶
type DatabaseConfig ¶
Click to show internal directories.
Click to hide internal directories.