diff options
| author | Shulhan <ms@kilabit.info> | 2026-01-21 01:12:11 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2026-01-21 01:12:11 +0700 |
| commit | fa4cc3a2ae6fa63bfbd8b005e4048dacc222dcc1 (patch) | |
| tree | b5566fe088dc51364101ab1db2a48ed845a4d832 /lilin.go | |
| parent | d0969869954c299c04ea58ab0fda1eba6a0350da (diff) | |
| download | lilin-fa4cc3a2ae6fa63bfbd8b005e4048dacc222dcc1.tar.xz | |
all: implement default down and up templates under section "[default"]
To minimize defining the same templates in notification, user can set
default down and up templates under the default section.
Diffstat (limited to 'lilin.go')
| -rw-r--r-- | lilin.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -17,5 +17,8 @@ const defTimeout = 5 * time.Second // defAddress default server address. const defAddress = `127.0.0.1:14507` +const defaultDownTemplate = `Service {{.ID}} is down: {{.Error}}` +const defaultUpTemplate = `Service {{.ID}} is alive!` + //go:embed _www var wwwFS embed.FS |
