diff options
| author | mo khan <mo@mokhan.ca> | 2025-05-02 14:29:41 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-05-02 14:29:41 -0600 |
| commit | c583bcd1473205104a1e1af812ed4976d30c7baa (patch) | |
| tree | 933edf78a4ac8aea55256e42641e56bbb4c58834 /pkg/srv/srv.go | |
| parent | 91defaefca47e9cebbe92c6abf33c4423df9bc7d (diff) | |
refactor: remove anything unrelated to the authz daemon
Diffstat (limited to 'pkg/srv/srv.go')
| -rw-r--r-- | pkg/srv/srv.go | 26 |
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)) -} |
