config

package
v0.5.0-beta Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2022 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFailToLoadConfig  = errors.System(nil, "fail to load config", "DCONF:001")
	ErrFailEnsureConfig  = errors.System(nil, "fail to ensure config", "DCONF:002")
	ConfigFileWasCreated = errors.Business("a new config file was created (%s)", "DCONF:003")
)

Functions

func BuildDate

func BuildDate() string

func Commit

func Commit() string

func Hostname

func Hostname() string

func Version

func Version() string

func VersionVerbose

func VersionVerbose() string

Types

type AppConfig

type AppConfig struct {
	Download download.Config
	Cut      cut.Config
	Audio    audios.Config
	Merge    merge.Config
}

func Ctx

func Ctx(ctx context.Context) AppConfig

func Load

func Load(file string) (AppConfig, error)

func (AppConfig) WithContext

func (c AppConfig) WithContext(ctx context.Context) context.Context

Jump to

Keyboard shortcuts

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