configuration

package
v0.0.0-...-2e50eff Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Attemps              int
	RestartInterval      time.Duration
	CheckInterval        time.Duration
	ServiceName          string
	NotificationMailFrom string
	NotificationMailTo   string
	MailPassword         string
	MailSmtp             string
	MailPort             int
}

Configuration struct represents config file

func NewConfigFile

func NewConfigFile(filename string) (*Configuration, error)

NewConfigFile creates new Configuration struct based on json config file. If successful method returns pointer to Configuration struct; if not: the error will be returned.

Jump to

Keyboard shortcuts

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