conf

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Recorder    RecorderConfig    `yaml:"recorder"`
	Indexer     IndexerConfig     `yaml:"indexer"`
	Recorgnizer RecorgnizerConfig `yaml:"recorgnizer"`
}

func ReadConf

func ReadConf() (Config, error)

ReadConf reads the github.com/pedrohba1/SSCS/services.yml YAML file and unmarshals it into a Go structure.

type IndexerConfig

type IndexerConfig struct {
	DbUrl string `yaml:"dbUrl"`
}

type RTSPConfig

type RTSPConfig struct {
	Feeds []string `yaml:"feeds"`
}

type RecorderConfig

type RecorderConfig struct {
	RTSP          RTSPConfig `yaml:"rtsp"`
	RecordingsDir string     `yaml:"recordingsDir"`
}

type RecorgnizerConfig

type RecorgnizerConfig struct {
	FaceHaarPath string `yaml:"faceHaarPath"`
	ThumbsDir    string `yaml:"thumbsDir"`
}

Jump to

Keyboard shortcuts

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