statping/utils
Emanuel Bennici 1053be44b0
Fix email template
The Email notifier was using `map[string]interface{}` to "put" the
information (like Service and Failure struct) into the template.
The value of a map can only be used with `{{ index . "Service" }}` in a
GoLang template.
To simplify – and reduce the needed changes – `emailOutgoing` now
contains for the `Data` field an extra struct with `Service` and
`Failure` fields.

This patch fixes #472.
2020-04-27 13:43:00 +02:00
..
configs.go envs 2020-04-20 08:17:22 -07:00
doc.go vue 2020-03-09 11:17:55 -07:00
encryption.go removed comments 2020-04-01 21:44:41 -07:00
file.go error handling, tests, fixes 2020-04-16 20:21:17 -07:00
log.go issue #502 2020-04-19 02:05:39 -07:00
metrics.go notify after x failures, variable replacer, 0.90.16 2020-03-22 19:50:30 -07:00
perlin.go notify after x failures, variable replacer, 0.90.16 2020-03-22 19:50:30 -07:00
replacer.go Fix email template 2020-04-27 13:43:00 +02:00
time.go removed comments 2020-04-01 21:44:41 -07:00
utils.go http redirection option, issue #502, #499 2020-04-19 04:16:44 -07:00
utils_custom.go confirm statping can write to current working directory 2020-01-12 21:13:26 -08:00
utils_test.go additional testing 2020-04-19 01:12:41 -07:00
utils_windows.go setting up for basePath 2020-01-12 23:11:53 -08:00