MCPcopy Index your code
hub / github.com/go-dev-frame/sponge / Run

Method Run

pkg/httpsrv/http.go:54–65  ·  view source on GitHub ↗

Run starts the server according to the provided configuration.

()

Source from the content-addressed store, hash-verified

52
53// Run starts the server according to the provided configuration.
54func (s *Server) Run() error {
55 if err := s.validate(); err != nil {
56 return err
57 }
58
59 // no TLS mode specified, run in http mode.
60 if s.tlser == nil {
61 return s.runHTTP()
62 }
63
64 return s.tlser.Run(s.server)
65}
66
67// Shutdown gracefully shuts down the server and releases resources.
68func (s *Server) Shutdown(ctx context.Context) error {

Callers

nothing calls this directly

Calls 3

validateMethod · 0.95
runHTTPMethod · 0.95
RunMethod · 0.65

Tested by

no test coverage detected