Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3ea5327762
|
||
|
|
efb2d846c3
|
@@ -8,7 +8,7 @@ import (
|
||||
"os"
|
||||
)
|
||||
|
||||
const version = "v0.0.9"
|
||||
const version = "v0.0.11"
|
||||
|
||||
type v struct {
|
||||
Hostname string `json:"hostname"`
|
||||
@@ -35,11 +35,11 @@ func main() {
|
||||
fmt.Fprintf(w, "%v\n", line)
|
||||
}
|
||||
})
|
||||
http.HandleFunc("/live", health)
|
||||
http.HandleFunc("/ready", health)
|
||||
http.HandleFunc("/live", ok)
|
||||
http.HandleFunc("/ready", ok)
|
||||
if err := http.ListenAndServe(":8080", nil); err != nil {
|
||||
log.Fatalf("listen and serve: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func health(w http.ResponseWriter, req *http.Request) {}
|
||||
func ok(w http.ResponseWriter, req *http.Request) {}
|
||||
|
||||
Reference in New Issue
Block a user