Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Api is the public endpoint used to send stats from nodes to this server Api string = "/api" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeRelay ¶
type NodeRelay struct {
// contains filtered or unexported fields
}
NodeRelay contains the secret used to authenticate the communication between the Ethereum node and this server
func (*NodeRelay) Close ¶
func (n *NodeRelay) Close()
Close closes the connection between this server and all Ethereum nodes connected to it
func (*NodeRelay) HandleRequest ¶
func (n *NodeRelay) HandleRequest(w http.ResponseWriter, r *http.Request)
HandleRequest is the function to handle all server requests that came from Ethereum nodes
Click to show internal directories.
Click to hide internal directories.