Skip to content
Snippets Groups Projects
Unverified Commit a87fcf25 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

add healthz

parent 2937d411
Branches
Tags 1.0.0-rc.3
No related merge requests found
Pipeline #3018 passed
...@@ -99,5 +99,8 @@ func main() { ...@@ -99,5 +99,8 @@ func main() {
_, _ = io.Copy(writer, cacheEntry.Content) _, _ = io.Copy(writer, cacheEntry.Content)
_ = cacheEntry.Content.Close() _ = cacheEntry.Content.Close()
}) })
http.HandleFunc("/healthz", func(writer http.ResponseWriter, request *http.Request) {
_, _ = fmt.Fprintf(writer, "ok\n")
})
log.Fatal(http.ListenAndServe(":8080", nil)) log.Fatal(http.ListenAndServe(":8080", nil))
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment