MCPcopy Create free account
hub / github.com/brimdata/super / Server

Struct Server

pkg/httpd/server.go:16–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14var ShutdownTimeout = time.Second * 5
15
16type 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
25func New(addr string, h http.Handler) *Server {
26 return &Server{addr: addr, srv: &http.Server{Handler: h}, logger: zap.NewNop()}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected