package
Version:
v0.0.0-...-e0ea44e
Opens a new window with list of versions in this module.
Published: Feb 17, 2019
License: GPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type AuthMessage struct {
ID string `json:"id"`
Secret string `json:"secret"`
}
AuthMessage is the struct sent by the server on the first connection
SendResponse send the ready response to the node to initiate the communication
type Message struct {
Content []byte
}
Message contains the Ethereum message
GetType return the type of the message sent by the Ethereum node
GetValue retrieve the current content of the emitted message by the node
type NodePing struct {
ID string `json:"id"`
Time string `json:"clientTime"`
}
NodePing contains the last time the node is alive
SendResponse send the pong response to the node
Source Files
¶
Click to show internal directories.
Click to hide internal directories.