aboutsummaryrefslogtreecommitdiff
path: root/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'server.go')
-rw-r--r--server.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/server.go b/server.go
index 1741c27..ef8fabf 100644
--- a/server.go
+++ b/server.go
@@ -113,6 +113,12 @@ func (srv *Server) initTemplate() (err error) {
}
return ver
},
+ `statusString`: func(success bool) string {
+ if success {
+ return "UP"
+ }
+ return "DOWN"
+ },
})
var tmplraw []byte