refactor: add record types to protocol

This commit is contained in:
Derrick Hammer 2024-01-09 13:47:26 -05:00
parent cd8e747656
commit 6b6e7d4fc4
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,8 @@ const (
ProtocolMethodHashQuery ProtocolMethod = 0x4
ProtocolMethodAnnouncePeers ProtocolMethod = 0x8
ProtocolMethodRegistryQuery ProtocolMethod = 0xD
RecordTypeStorageLocation ProtocolMethod = 0x05
RecordTypeStreamEvent ProtocolMethod = 0x09
)
var ProtocolMethodMap = map[ProtocolMethod]string{
@ -18,4 +20,6 @@ var ProtocolMethodMap = map[ProtocolMethod]string{
ProtocolMethodHashQuery: "HashQuery",
ProtocolMethodAnnouncePeers: "AnnouncePeers",
ProtocolMethodRegistryQuery: "RegistryQuery",
RecordTypeStorageLocation: "StorageLocation",
RecordTypeStreamEvent: "StreamEvent",
}