Compare commits
No commits in common. "2dec242a6dac26d92f399c0b11d7b523cb4b17d0" and "7a7a996282820dffcaf55ba5e00b0ab00ae0b1f5" have entirely different histories.
2dec242a6d
...
7a7a996282
6
main.go
6
main.go
@ -29,11 +29,7 @@ func handlerWrapper(f func(*http.Request) (interface{}, int)) func(http.Response
|
|||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
err := client.Connect()
|
client.Connect()
|
||||||
if err != nil {
|
|
||||||
panic(err)
|
|
||||||
}
|
|
||||||
|
|
||||||
http.HandleFunc("/api/v1/metrics/endpoint", handlerWrapper(endpoint.AddEndpointMetric))
|
http.HandleFunc("/api/v1/metrics/endpoint", handlerWrapper(endpoint.AddEndpointMetric))
|
||||||
log.Printf("Server started")
|
log.Printf("Server started")
|
||||||
http.ListenAndServe(":1237", nil)
|
http.ListenAndServe(":1237", nil)
|
||||||
|
Loading…
Reference in New Issue
Block a user