config

package
v0.0.0-...-fc716ca Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2016 License: GPL-3.0 Imports: 10 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 {
	NewsServer newsServer
	DB         dbConfig
	Regex      regexSource
}

Config is the base config struct for gonab

func NewConfig

func NewConfig() *Config

NewConfig returns a new Config struct with defaults filled out

func (*Config) ReadConfig

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

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

Jump to

Keyboard shortcuts

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