| 14 | var ShutdownTimeout = time.Second * 5 |
| 15 | |
| 16 | type Server struct { |
| 17 | addr string |
| 18 | lnAddr string |
| 19 | logger *zap.Logger |
| 20 | srv *http.Server |
| 21 | done sync.WaitGroup |
| 22 | err error |
| 23 | } |
| 24 | |
| 25 | func New(addr string, h http.Handler) *Server { |
| 26 | return &Server{addr: addr, srv: &http.Server{Handler: h}, logger: zap.NewNop()} |
nothing calls this directly
no outgoing calls
no test coverage detected