config

package
v0.0.0-...-7377fae Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogging

func InitLogging(logParams smartlogger.LogParams)

InitLogging initializes this package's logging

func NewDummyConfig

func NewDummyConfig(dummyConfig *viper.Viper)

NewDummyConfig creates a new dummy configuration

func ValidateConfig

func ValidateConfig(globalConfig *viper.Viper) bool

ValidateConfig validates the configuration

Types

type Config

type Config struct {
	Recording   *recording.Config `toml:"recording"`
	StoragePath string            `toml:"storage_path"`
}

Config is a container for the entire utility configuration

type ErrCreateStorageDir

type ErrCreateStorageDir struct {
	Dirname string
}

ErrCreateStorageDir describes the creation of a certain storage directory

func NewErrCreateStorageDir

func NewErrCreateStorageDir(dirname string) *ErrCreateStorageDir

NewErrCreateStorageDir returns a new ErrCreateStorageDir

func (*ErrCreateStorageDir) Error

func (err *ErrCreateStorageDir) Error() string

type ErrNoPermissions

type ErrNoPermissions struct {
	Path string
}

ErrNoPermissions describes a missing branch

func NewErrNoPermissions

func NewErrNoPermissions(path string) *ErrNoPermissions

NewErrNoPermissions returns a new ErrNoPermissions

func (*ErrNoPermissions) Error

func (err *ErrNoPermissions) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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