Add a simple /healthz endpoint

- Also remove the old hello world code

Signed-off-by: Andrew Keesler <akeesler@vmware.com>
This commit is contained in:
Ryan Richard
2020-07-06 16:07:21 -07:00
committed by Andrew Keesler
parent cc81dd04e9
commit 57a22f99aa
8 changed files with 93 additions and 39 deletions

View File

@@ -6,11 +6,11 @@ SPDX-License-Identifier: Apache-2.0
package main
import (
"fmt"
"github.com/suzerain-io/placeholder-name/pkg/hello"
"github.com/suzerain-io/placeholder-name/pkg/handlers"
"log"
"net/http"
)
func main() {
fmt.Println(hello.NewHelloSayer().SayHello())
log.Fatal(http.ListenAndServe(":8080", handlers.New()))
}