Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{
Use: "nanny",
Short: "Nanny is a monitor that alerts when your other programs stop breathing",
Long: `Nanny runs a API, that expects HTTP POST from your program in periodic
intervals. If your program does not call nanny in expected interval, it
notifies you.`,
Run: run,
}
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
type Config ¶
type Config struct { Name string Addr string StorageDSN string `mapstructure:"storage_dsn"` Stderr Stderr Email Email Sentry Sentry Twilio Twilio Slack Slack }
Config is a config, not much to say here, really.
type Email ¶
type Email struct { Enabled bool From string To []string Subject string Body string SMTPServer string `mapstructure:"smtp_server"` SMTPPort int `mapstructure:"smtp_port"` SMTPUser string `mapstructure:"smtp_user"` SMTPPassword string `mapstructure:"smtp_password"` }
Email notifier config.
Click to show internal directories.
Click to hide internal directories.