2017-12-28 01:41:37 +00:00
|
|
|
// +build !appengine
|
|
|
|
|
2018-08-25 10:11:08 +00:00
|
|
|
package main
|
2015-10-28 12:47:31 +00:00
|
|
|
|
2015-07-29 07:01:23 +00:00
|
|
|
import (
|
2017-12-28 01:41:37 +00:00
|
|
|
"context"
|
2015-07-29 07:01:23 +00:00
|
|
|
"net/http"
|
2020-01-11 19:48:01 +00:00
|
|
|
|
|
|
|
log "github.com/sirupsen/logrus"
|
2015-07-29 07:01:23 +00:00
|
|
|
)
|
|
|
|
|
2017-12-28 01:41:37 +00:00
|
|
|
func getHTTPClient(ctx context.Context) *http.Client {
|
|
|
|
return &http.Client{}
|
2015-07-29 07:01:23 +00:00
|
|
|
}
|
|
|
|
|
2017-12-28 01:41:37 +00:00
|
|
|
func getContext(r *http.Request) context.Context {
|
|
|
|
return r.Context()
|
2015-07-29 07:01:23 +00:00
|
|
|
}
|
|
|
|
|
2017-12-28 01:41:37 +00:00
|
|
|
func main() {
|
|
|
|
initializeStorage()
|
2020-01-11 19:48:01 +00:00
|
|
|
log.WithError(http.ListenAndServe(cfg.Listen, nil)).Error("HTTP Server exited unexpectedly")
|
2015-07-29 07:01:23 +00:00
|
|
|
}
|