Documentation ¶
Overview ¶
Package server just encapsulates the HTTP server that serves the API
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server handles serving the core API for Aetherometer
func (*Server) AddHandler ¶
AddHandler adds a handler to this server
func (*Server) Address ¶
Address returns the address of this server. This value is only valid if the server has been started, otherwise it'll be a nil Addr interface value.
func (*Server) Stop ¶
func (s *Server) Stop()
Stop will shutdown the core server, and will timeout within 1 second
func (*Server) WaitUntilReady ¶
func (s *Server) WaitUntilReady()
WaitUntilReady blocks until the server has started listening
Click to show internal directories.
Click to hide internal directories.