remove build flags, add debug server to accounts

This commit is contained in:
Willy Kloucek
2022-01-03 11:11:15 +01:00
parent 6d0b754a86
commit eee0d0c4c8
24 changed files with 260 additions and 63 deletions
+8 -4
View File
@@ -33,9 +33,11 @@ func health(cfg *config.Config) func(http.ResponseWriter, *http.Request) {
w.Header().Set("Content-Type", "text/plain")
w.WriteHeader(http.StatusOK)
// TODO(tboerger): check if services are up and running
// TODO: check if services are up and running
if _, err := io.WriteString(w, http.StatusText(http.StatusOK)); err != nil {
_, err := io.WriteString(w, http.StatusText(http.StatusOK))
// io.WriteString should not fail but if it does we want to know.
if err != nil {
panic(err)
}
}
@@ -47,9 +49,11 @@ func ready(cfg *config.Config) func(http.ResponseWriter, *http.Request) {
w.Header().Set("Content-Type", "text/plain")
w.WriteHeader(http.StatusOK)
// TODO(tboerger): check if services are up and running
// TODO: check if services are up and running
if _, err := io.WriteString(w, http.StatusText(http.StatusOK)); err != nil {
_, err := io.WriteString(w, http.StatusText(http.StatusOK))
// io.WriteString should not fail but if it does we want to know.
if err != nil {
panic(err)
}
}