parent
cc4589cb14
commit
10ad216fcf
7 changed files with 41 additions and 10 deletions
3
db.go
3
db.go
|
|
@ -11,6 +11,9 @@ import (
|
|||
var version string
|
||||
|
||||
func main() {
|
||||
http.HandleFunc("/healthz", func(w http.ResponseWriter, r *http.Request) {
|
||||
w.WriteHeader(http.StatusOK)
|
||||
})
|
||||
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||||
log.Printf("%s %s %s", r.RemoteAddr, r.Method, r.URL)
|
||||
h, err := os.Hostname()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue