config

package
v0.0.0-...-640c710 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2017 License: MIT Imports: 2 Imported by: 27

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigStruct

type ConfigStruct struct {
	DBChoice  string
	DBHost    string
	DBPort    string
	DBUser    string
	DBPass    string
	DBName    string
	Whitelist bool
	IRCCfg    *IRCConfig
	UseRSS    bool
}

ConfigStruct holds the values that our config file holds

func LoadConfig

func LoadConfig() ConfigStruct

LoadConfig loads the config into the Config Struct and returns the // ConfigStruct object. Will load from environmental variables (all caps) if we set a flag to true.

type IRCConfig

type IRCConfig struct {
	Nick   string
	Pass   string
	User   string
	Name   string
	Server string
	Port   int
	Chan   string
}

Jump to

Keyboard shortcuts

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