Versions in this module Expand all Collapse all v0 v0.1.0 Sep 2, 2021 Changes in this version + const CmdErr + const CmdMessages + const CmdPeers + const CmdPing + const CmdPong + const CmdQuestion + const CmdRoots + const CmdUser + const CmdVersion + const CommandSize + const WaveHeaderSize + const WaveSize + func SendWave(w io.Writer, wave Wave) (int, error) + type Wave interface + Command func() string + func ReceiveWave(r io.Reader) (Wave, error) + type WaveErr struct + Err string + WaveID common.Hash + func (w *WaveErr) Command() string + type WaveMessages struct + Msgs [][]byte + WaveID common.Hash + func (w *WaveMessages) Command() string + type WavePeers struct + Peers [][]byte + WaveID common.Hash + func (w *WavePeers) Command() string + type WavePing struct + WaveID common.Hash + func (w *WavePing) Command() string + type WavePong struct + WaveID common.Hash + func (w *WavePong) Command() string + type WaveQuestion struct + Args [][]byte + Cmd string + WaveID common.Hash + func (w *WaveQuestion) Command() string + type WaveRoots struct + Users [2]*core.User + WaveID common.Hash + func (w *WaveRoots) Command() string + type WaveUser struct + WaveID common.Hash + func (w *WaveUser) Command() string + type WaveVersion struct + WaveID common.Hash + func (w *WaveVersion) Command() string