aboutsummaryrefslogtreecommitdiff
path: root/lilin.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-01-21 01:12:11 +0700
committerShulhan <ms@kilabit.info>2026-01-21 01:12:11 +0700
commitfa4cc3a2ae6fa63bfbd8b005e4048dacc222dcc1 (patch)
treeb5566fe088dc51364101ab1db2a48ed845a4d832 /lilin.go
parentd0969869954c299c04ea58ab0fda1eba6a0350da (diff)
downloadlilin-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.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/lilin.go b/lilin.go
index b855692..70ce678 100644
--- a/lilin.go
+++ b/lilin.go
@@ -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