config

package
v0.0.0-...-939b314 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Camera

type Camera struct {
	Name             string `mapstructure:"name"`
	Address          string `mapstructure:"address"`
	Username         string `mapstructure:"username"`
	Password         string `mapstructure:"password"`
	LowStreamQuality bool   `mapstructure:"low_stream_quality"`
}

type Config

type Config struct {
	Port               string        `mapstructure:"port"`
	DataDir            string        `mapstructure:"data_dir"`
	CleanFilesInterval time.Duration `mapstructure:"clean_files_interval"`
	SyncInterval       time.Duration `mapstructure:"sync_interval"`
	Cameras            []Camera      `mapstructure:"cameras"`
}

func NewConfig

func NewConfig(configPath string) (*Config, error)

Jump to

Keyboard shortcuts

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