Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
func LoadConfig(path string)
func SaveConfig ¶
Types ¶
type Config ¶
type Config struct { Webserver WebserverConfig `toml:"webserver"` ZFS ZFSConfig `toml:"zfs"` UseCacheDirForBackups bool `toml:"use-cache-dir-for-backups"` DaysToScan int `toml:"days-to-scan"` MaxArchiveUnpackedSizeMB int `toml:"max-archive-unpacked-size-mb"` SnapshotNameTemplate string `toml:"snapshot-name-template"` CompareMethod string `toml:"compare-method"` DiffContextSize int `toml:"diff-context-size"` }
var Get Config = Config{ Webserver: NewDefaultWebserverConfig(), ZFS: NewDefaultZFSConfig(), UseCacheDirForBackups: true, DaysToScan: 2, MaxArchiveUnpackedSizeMB: 200, SnapshotNameTemplate: "zfs-snap-diff-%FT%H:%M", CompareMethod: "auto", DiffContextSize: 5, }
type WebserverConfig ¶
type WebserverConfig struct { // listen ListenIp string `toml:"listen-ip"` ListenPort int `toml:"listen-port"` // tls UseTLS bool `toml:"use-tls"` CertFile string `toml:"cert-file"` KeyFile string `toml:"key-file"` // webapp WebappDir string `toml:"webapp-dir,omitempty"` }
func NewDefaultWebserverConfig ¶
func NewDefaultWebserverConfig() WebserverConfig
func (*WebserverConfig) ListenAddress ¶
func (self *WebserverConfig) ListenAddress() string
Click to show internal directories.
Click to hide internal directories.