config

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2016 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	URIs map[string]string

	RandomDelayEnabled bool
	ConfigAndPing      bool
	UserAgent          string
	Suffix             string
}

Config holds the application configuration

func NewConfigFromEnv

func NewConfigFromEnv() Config

NewConfigFromEnv creates and fills a Config from os.Environ()

func (Config) GetGraphName added in v1.4.0

func (c Config) GetGraphName() string

GetGraphName returns the suffixed graph name

func (*Config) SetSuffixFromArg0 added in v1.4.0

func (c *Config) SetSuffixFromArg0(arg0 string)

SetSuffixFromArg0 set the graph name suffix from the program full name

Jump to

Keyboard shortcuts

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