diff --git a/main.go b/main.go index a332ec2d1c6ee9285c567b96491d015e8d4c5163..94ee77c47b343cbb3e62ff43aa14074282867007 100644 --- a/main.go +++ b/main.go @@ -8,6 +8,7 @@ import ( "fmt" "path/filepath" "time" + "net/http" ) func returnResult(config *Config, client *redis.Client, result Result) { @@ -84,4 +85,13 @@ func main() { go processImage(&config, client, value) } } + + http.HandleFunc("/healthz", func(w http.ResponseWriter, r *http.Request) { + w.Write([]byte("OK")) + }) + + err := http.ListenAndServe(":8080", nil) + if err != nil { + panic(err) + } }