Start begins listening for incoming HTTP requests
()
| 149 | |
| 150 | // Start begins listening for incoming HTTP requests |
| 151 | func (s *Server) Start() error { |
| 152 | log.Printf("HTTP server starting on %s", s.config.ServerAddress) |
| 153 | return s.server.ListenAndServe() |
| 154 | } |
| 155 | |
| 156 | // Shutdown gracefully shuts down the server |
| 157 | func (s *Server) Shutdown(ctx context.Context) error { |