Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnmarshalYAMLFile ¶
UnmarshalYAMLFile reads a config file and unmarshals it into a config struct
Types ¶
type Application ¶
Application is a structure that contains the info about each supported application and its configuration file.
type ApplicationConfig ¶
type ApplicationConfig interface { GetSMTPSettings() *SMTPSettings ValidateSMTPSettings() error }
ApplicationConfig defines a common interface for getting information from the application config
type SMTPSettings ¶
type SMTPSettings struct { Host string `default:"localhost"` Port int `default:"25"` User string Pass string }
SMTPSettings is a structure that contains the SMTP credentials to use on the SMTP checks
func NewSMTPSettingsFromFlags ¶
func NewSMTPSettingsFromFlags(fs *flag.FlagSet) *SMTPSettings
NewSMTPSettingsFromFlags creates a SMTPSettings from the provided command line flags
Click to show internal directories.
Click to hide internal directories.