config

package
v0.0.0-...-c17f0c9 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSCred

type AWSCred struct {
	AccessKeyID     string `toml:"access_key_id"`
	SecretAccessKey string `toml:"secret_access_key"`
}

type Config

type Config struct {
	Name                   string   `toml:"name"`
	FFMPEGPath             string   `toml:"ffmpeg_path"`
	Device                 string   `toml:"device"`
	SaveTSDir              string   `toml:"save_ts_dir"`
	Bucket                 string   `toml:"bucket"`
	WebhookURL             string   `toml:"webhook_url"`
	LoadKernelModule       bool     `toml:"load_kernel_module"`
	AWSCreds               *AWSCred `toml:"aws_creds"`
	WebserverListenAddr    string   `toml:"webserver_listen_address"`
	DisableRecordingForIPs []string `toml:"disable_recording_for_ips"`
}

func LoadConfig

func LoadConfig(confPath string) (*Config, error)

func (*Config) NameForFile

func (c *Config) NameForFile() string

Jump to

Keyboard shortcuts

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