Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-p2p-pubsub
Commits
0a25f248
Commit
0a25f248
authored
Nov 11, 2019
by
vyzo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trace event protobuf
parent
fb11aa98
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5678 additions
and
0 deletions
+5678
-0
pb/trace.pb.go
pb/trace.pb.go
+5543
-0
pb/trace.proto
pb/trace.proto
+135
-0
No files found.
pb/trace.pb.go
0 → 100644
View file @
0a25f248
This diff is collapsed.
Click to expand it.
pb/trace.proto
0 → 100644
View file @
0a25f248
syntax
=
"proto2"
;
package
pubsub
.
pb
;
message
TraceEvent
{
optional
Type
type
=
1
;
optional
bytes
peerID
=
2
;
optional
uint64
timestap
=
3
;
optional
PublishMessage
publishMessage
=
4
;
optional
RejectMessage
rejectMessage
=
5
;
optional
DuplicateMessage
duplicateMessage
=
6
;
optional
DeliverMessage
deliverMessage
=
7
;
optional
AddPeer
addPeer
=
8
;
optional
RemovePeer
removePeer
=
9
;
optional
RecvRPC
recvRPC
=
10
;
optional
SendRPC
sendRPC
=
11
;
optional
DropRPC
dropRPC
=
12
;
optional
Join
join
=
13
;
optional
Leave
leave
=
14
;
optional
Graft
graft
=
15
;
optional
Prune
prune
=
16
;
enum
Type
{
PUBLISH_MESSAGE
=
0
;
REJECT_MESSAGE
=
1
;
DUPLICATE_MESSAGE
=
2
;
DELIVER_MESSAGE
=
3
;
ADD_PEER
=
4
;
REMOVE_PEER
=
5
;
RECV_RPC
=
6
;
SEND_RPC
=
7
;
DROP_RPC
=
8
;
JOIN
=
9
;
LEAE
=
10
;
GRAFT
=
11
;
PRUNE
=
12
;
}
message
PublishMessage
{
optional
bytes
messageID
=
1
;
}
message
RejectMessage
{
optional
bytes
messageID
=
1
;
optional
bytes
receivedFrom
=
2
;
optional
string
reason
=
3
;
}
message
DuplicateMessage
{
optional
bytes
messageID
=
1
;
optional
bytes
receivedFrom
=
2
;
}
message
DeliverMessage
{
optional
bytes
messageID
=
1
;
}
message
AddPeer
{
optional
bytes
peerID
=
1
;
optional
string
proto
=
2
;
}
message
RemovePeer
{
optional
bytes
peerID
=
1
;
}
message
RecvRPC
{
optional
bytes
receivedFrom
=
1
;
optional
RPCMeta
meta
=
2
;
}
message
SendRPC
{
optional
bytes
sendTo
=
1
;
optional
RPCMeta
meta
=
2
;
}
message
DropRPC
{
optional
bytes
sendTo
=
1
;
optional
RPCMeta
meta
=
2
;
}
message
Join
{
optional
string
topic
=
1
;
}
message
Leave
{
optional
string
topic
=
2
;
}
message
Graft
{
optional
bytes
peerID
=
1
;
optional
string
topic
=
2
;
}
message
Prune
{
optional
bytes
peerID
=
1
;
optional
string
topic
=
2
;
}
message
RPCMeta
{
repeated
bytes
messageIDs
=
1
;
repeated
SubMeta
subMeta
=
2
;
optional
ControlMeta
controlMeta
=
3
;
}
message
SubMeta
{
optional
bool
subscribe
=
1
;
optional
string
topic
=
2
;
}
message
ControlMeta
{
repeated
ControlIHaveMeta
ihave
=
1
;
repeated
ControlIWantMeta
iwant
=
2
;
repeated
ControlGraftMeta
graft
=
3
;
repeated
ControlPruneMeta
prune
=
4
;
}
message
ControlIHaveMeta
{
optional
string
topic
=
1
;
repeated
bytes
messageIDs
=
2
;
}
message
ControlIWantMeta
{
repeated
bytes
messageIDs
=
1
;
}
message
ControlGraftMeta
{
optional
string
topic
=
1
;
}
message
ControlPruneMeta
{
optional
string
topic
=
1
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment