summaryrefslogtreecommitdiff
path: root/pkg/srv
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/srv')
-rw-r--r--pkg/srv/srv.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/pkg/srv/srv.go b/pkg/srv/srv.go
deleted file mode 100644
index e7189406..00000000
--- a/pkg/srv/srv.go
+++ /dev/null
@@ -1,26 +0,0 @@
-package srv
-
-import (
- "log"
- "net/http"
- "time"
-
- "gitlab.com/mokhax/spike/pkg/cfg"
-)
-
-func New(c *cfg.Config) *http.Server {
- return &http.Server{
- Addr: c.BindAddress,
- Handler: c.Mux,
- TLSConfig: c.TLS,
- ReadHeaderTimeout: 10 * time.Second,
- ReadTimeout: 30 * time.Second,
- WriteTimeout: 30 * time.Second,
- IdleTimeout: 30 * time.Second,
- ErrorLog: log.Default(),
- }
-}
-
-func Run(c *cfg.Config) error {
- return c.Run(New(c))
-}