config

package
v0.0.0-...-21615fd Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2015 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DB            dbConfig
	WebServer     webConfig
	Storage       storageConfig
	MediaDefaults mediaDefaults
	Providers     []ProviderConfig
}

Config is the base struct for Tv2Go configuration information.

func NewConfig

func NewConfig() *Config

NewConfig returns a Config struct with reasonable defaults set.

func NewTestConfig

func NewTestConfig() *Config

NewTestConfig returns a Config instance suitable for use in testing.

func (*Config) ReadConfig

func (c *Config) ReadConfig(configPath string) error

ReadConfig Decodes and evaluates a json config file, watching for include cycles.

type ProviderConfig

type ProviderConfig struct {
	Name string
	API  string
}

Jump to

Keyboard shortcuts

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