config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: GPL-3.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitWithDefaults

func InitWithDefaults(cfg *Data)

func LoadLocal

func LoadLocal() error

func LoadLocalFrom

func LoadLocalFrom(path string) error

func PriorityUint32

func PriorityUint32(p string) uint32

func Save

func Save() error

Types

type AgeModuleSettings

type AgeModuleSettings struct {
	MaxAge int
}

type AudioFormats

type AudioFormats struct {
	StereoTags []string
	MultiTags  []string
}

type AudioModuleSettings

type AudioModuleSettings struct {
	Accuracy string
}

type Data

type Data struct {
	Local  Local
	Shared Shared
}

func Instance

func Instance() *Data

Instance retrieves the current configuration file instance

Creates a new one if it doesn't exist

func (*Data) Update

func (cfg *Data) Update(inCfg Local)

type DuplicateLengthCheckSettings

type DuplicateLengthCheckSettings struct {
	Threshold int
}

type EncoderConfig

type EncoderConfig struct {
	OutDirectory  string
	PreArguments  []string
	PostArguments []string
	Stash         []string
}

type ErrorModuleSettings

type ErrorModuleSettings struct {
	Threshold int
}

type LengthModuleSettings

type LengthModuleSettings struct {
	Threshold int
}

type Local

type Local struct {
	DatabaseURL      string
	Ext              string
	AudioFormats     AudioFormats
	Resolutions      map[string]string
	ObsoletePath     string
	MediaPaths       []string
	EstimatedLibSize int
	Modules          map[string]ModuleConfig
	EncoderConfig    map[string]EncoderConfig
	EncoderPriority  string
}

Local is the main application configuration

type LogMatchModuleSettings

type LogMatchModuleSettings struct {
	Mode string
}

type MaxSizeModuleSettings

type MaxSizeModuleSettings struct {
	MaxSize int
}

type ModuleConfig

type ModuleConfig struct {
	Enabled  bool
	Priority int
	Settings interface{}
}

type Priority

type Priority uint32
const (
	PRIORITY_ABOVE_NORMAL Priority = 0x00008000
	PRIORITY_BELOW_NORMAL Priority = 0x00004000
	PRIORITY_HIGH         Priority = 0x00000080
	PRIORITY_IDLE         Priority = 0x00000040
	PRIORITY_NORMAL       Priority = 0x00000020
)

func (Priority) String

func (p Priority) String() string

type ResolutionModuleSettings

type ResolutionModuleSettings struct {
	MinResolution int
}

type Shared

type Shared struct {
	NameExclude []string
	SubExclude  []string
	LogInclude  []string
	LogExclude  []string
}

type SizeApproxModuleSettings

type SizeApproxModuleSettings struct {
	Difference  int
	SampleCount int
	Fraction    int
}

Jump to

Keyboard shortcuts

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