settings

package
v0.0.0-...-35b36dc Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(filename string)

LoadConfig reads the specified config file

Types

type Config

type Config struct {
	Email struct {
		Body    string      `yaml:"body"`
		Cc      interface{} `yaml:"cc"`
		From    string      `yaml:"from"`
		Subject string      `yaml:"subject"`
		To      string      `yaml:"to"`
	} `yaml:"email"`
	Packages []string `yaml:"packages"`
	SMTP     struct {
		Port   int    `yaml:"port"`
		Server string `yaml:"server"`
	} `yaml:"smtp"`
}

Config represents the config structure for the package

var Values Config

Jump to

Keyboard shortcuts

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