config

package
v0.0.0-...-d80a93d Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2016 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host             string        `yaml:"host"`
	Port             int           `yaml:"port"`
	LogLevelString   string        `yaml:"log-level"`
	LogLevel         int           `yaml:"-"`
	IntervalCount    int           `yaml:"interval-count"`
	IntervalDuration time.Duration `yaml:"interval-duration"`
	Persistent       bool          `yaml:"persistent"`
	Filename         string        `yaml:"filename"`
	PersistDuration  time.Duration `yaml:"persist-duration"`
}

func LoadConfigFromFile

func LoadConfigFromFile() (*Config, error)

Jump to

Keyboard shortcuts

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