config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDBFilePathNotAbsolute  = errors.New("the path to the minidlna database must be absolute")
	ErrLogFilePathNotAbsolute = errors.New("the path to the minidlna log file must be absolute")
	ErrAPIKeyMissing          = errors.New("you must supply the api key")
	ErrSharedSecretMissing    = errors.New("you must supply the shared secret")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	DBFile      string      `json:"db_file"`
	LogFile     string      `json:"log_file"`
	Credentials Credentials `json:"credentials"`
}

func New

func New() (*Config, error)

type Credentials

type Credentials struct {
	APIKey       string `json:"api_key"`
	SharedSecret string `json:"shared_secret"`
}

type ErrConfigFileNotFound

type ErrConfigFileNotFound struct {
	Path string
}

func (ErrConfigFileNotFound) Error

func (e ErrConfigFileNotFound) Error() string

Jump to

Keyboard shortcuts

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