config

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VlcServerConfig

type VlcServerConfig struct {
	Environment string `required:"true" envconfig:"ENV"`
	ServerType  string `default:"vlc_server"`

	// Verbose determines output verbosity
	Verbose bool `default:"false" envconfig:"VERBOSE"`
	// VlcVerbose adds extra VLC output
	VlcVerbose bool `default:"false" envconfig:"VLC_VERBOSE"`

	// VideoDir is where the videos live
	VideoDir string `default:"/opt/data/Dashcam/_all" envconfig:"VIDEO_DIR"`
	// RunDir is where temporary-but-important runtime files live (such as pidfiles and onscreen content)
	RunDir string `default:"/opt/data/run" envconfig:"RUN_DIR"`

	// VLCPidFile is where the vlc-server PID file lives
	VLCPidFile string `default:"/opt/data/run/vlc-server.pid" envconfig:"VLC_PIDFILE"`
	// OBSPidFile is where the OBS PID file lives
	OBSPidFile string `default:"/opt/data/run/OBS.pid" envconfig:"OBS_PIDFILE"`

	// VlcServerHost is used to specify the host for the VLC webserver
	VlcServerHost string `required:"true" envconfig:"VLC_SERVER_HOST"`
}
var Conf *VlcServerConfig

func LoadVlcServerConfig

func LoadVlcServerConfig() *VlcServerConfig

func (VlcServerConfig) IsDevelopment

func (c VlcServerConfig) IsDevelopment() bool

func (VlcServerConfig) IsProduction

func (c VlcServerConfig) IsProduction() bool

func (VlcServerConfig) IsStaging

func (c VlcServerConfig) IsStaging() bool

func (VlcServerConfig) IsTesting

func (c VlcServerConfig) IsTesting() bool

Jump to

Keyboard shortcuts

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