GetPort returns the port the server is running on.
()
| 258 | |
| 259 | // GetPort returns the port the server is running on. |
| 260 | func (s *Server) GetPort() int { |
| 261 | s.mu.Lock() |
| 262 | defer s.mu.Unlock() |
| 263 | s.logger.Debug("Requested server port: %d", s.port) |
| 264 | |
| 265 | return s.port |
| 266 | } |
| 267 | |
| 268 | // IsRunning returns whether the server is currently running. |
| 269 | func (s *Server) IsRunning() bool { |
no test coverage detected