Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var EthereumCommand cli.Command
EthereumCommand contains the definition of the ethereum command-line subcommand and its own subcommands.
var PingCommand cli.Command
PingCommand contains the definition of the ping command-line subcommand.
var RelayCommand cli.Command
RelayCommand contains the definition of the relay command-line subcommand and its own subcommands.
var (
StartCommand cli.Command
)
StartCommand contains the definition of the start command-line subcommand.
Functions ¶
Types ¶
type PingMessage ¶
PingMessage is a network message sent between bootstrap peer and non-bootstrap peer in order to test the connection.
func (*PingMessage) Marshal ¶
func (pm *PingMessage) Marshal() ([]byte, error)
Marshal converts this PingMessage to a byte array suitable for network communication.
func (*PingMessage) Type ¶
func (pm *PingMessage) Type() string
Type returns a string type of the `PingMessage` so that it conforms to `net.Message` interface.
func (*PingMessage) Unmarshal ¶
func (pm *PingMessage) Unmarshal(bytes []byte) error
Unmarshal converts a byte array produced by Marshal to a PingMessage.
type PongMessage ¶
PongMessage is a network message sent between bootstrap peer and non-bootstrap peer in order to test the connection.
func (*PongMessage) Marshal ¶
func (pm *PongMessage) Marshal() ([]byte, error)
Marshal converts this PongMessage to a byte array suitable for network communication.
func (*PongMessage) Type ¶
func (pm *PongMessage) Type() string
Type returns a string type of the `PongMessage` so that it conforms to `net.Message` interface.
func (*PongMessage) Unmarshal ¶
func (pm *PongMessage) Unmarshal(bytes []byte) error
Unmarshal converts a byte array produced by Marshal to a PongMessage.