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.
Click to show internal directories.
Click to hide internal directories.