Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPServer ¶
HTTPServer is wrapper over http.Server
func NewServer ¶
func NewServer(node *node.Node, host string, port string, ssl *config.SSLOptions) (*HTTPServer, error)
NewServer builds HTTPServer from config params
func (*HTTPServer) HealthHandler ¶ added in v0.6.1
func (s *HTTPServer) HealthHandler(w http.ResponseWriter, _ *http.Request)
HealthHandler always reponds with 200 status
func (*HTTPServer) Stopped ¶
func (s *HTTPServer) Stopped() bool
Stopped return true iff server has been stopped by user
func (*HTTPServer) WebsocketHandler ¶
func (s *HTTPServer) WebsocketHandler(w http.ResponseWriter, r *http.Request)
WebsocketHandler called when new client connection comes to websocket endpoint.
Click to show internal directories.
Click to hide internal directories.