1
0
Fork 0
mirror of https://github.com/Luzifer/cloudkeys-go.git synced 2024-11-09 14:40:05 +00:00
cloudkeys-go/main.go
Knut Ahlers f42de6e8a9
Add error log to http server
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2020-01-11 20:48:01 +01:00

23 lines
392 B
Go

// +build !appengine
package main
import (
"context"
"net/http"
log "github.com/sirupsen/logrus"
)
func getHTTPClient(ctx context.Context) *http.Client {
return &http.Client{}
}
func getContext(r *http.Request) context.Context {
return r.Context()
}
func main() {
initializeStorage()
log.WithError(http.ListenAndServe(cfg.Listen, nil)).Error("HTTP Server exited unexpectedly")
}