Documentation ¶
Index ¶
Constants ¶
View Source
const Root string = "/"
Root is the home endpoint where hub are registered to receive node updates
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the responsible to send node state to registered hub
func (*Server) Close ¶
func (s *Server) Close()
Close this server and all registered client connections
func (*Server) HandleRequest ¶
func (s *Server) HandleRequest(w http.ResponseWriter, r *http.Request)
HandleRequest handle all request from hub that are not Ethereum nodes
Click to show internal directories.
Click to hide internal directories.