config

package
v1.4.1-0...-3bf76e9 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2017 License: MIT Imports: 3 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	CatalogPath              string  `json:"catalog_path"`
	DefaultProbability       float64 `json:"default_probability"`
	DefaultFrequency         int     `json:"default_frequency"`
	DatabaseConnectionString string
}

Config struct

func GetConfig

func GetConfig() *Config

GetConfig - retruns a the current config as an object

func LoadConfig

func LoadConfig(path string) (*Config, error)

LoadConfig - loads config from file to memory

Jump to

Keyboard shortcuts

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