config

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigFile string

Functions

func Load added in v0.4.0

func Load()

Load opens & attempts to parse configuration file

func Save added in v0.4.0

func Save(skipBackup bool)

Types

type Config

type Config struct {
	App     models.App      `fig:"app" json:"app" required:"false"`
	Frigate *models.Frigate `fig:"frigate" json:"frigate" validate:"required" required:"true"`
	Alerts  *models.Alerts  `fig:"alerts" json:"alerts" validate:"required" required:"true"`
	Monitor models.Monitor  `fig:"monitor" json:"monitor" required:"false"`
}
var ConfigData Config

func (*Config) Validate added in v0.4.0

func (c *Config) Validate() []string

Jump to

Keyboard shortcuts

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