package
Version:
v0.0.0-...-868bdbc
Opens a new window with list of versions in this module.
Published: Sep 8, 2020
License: AGPL-3.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
GetMessageType returns the corresponding proto message type given an opcode
RegisterMessageType registers a new proto message to the given opcode
const (
UnregisteredCode Opcode = 0x00000
BytesCode Opcode = 0x00001
PingCode Opcode = 0x0000a
PongCode Opcode = 0x0000b
LookupNodeRequestCode Opcode = 0x0000c
LookupNodeResponseCode Opcode = 0x0000d
)
GetOpcode returns the corresponding opcode given a proto message
Source Files
¶
Click to show internal directories.
Click to hide internal directories.