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
fa4d16e0
Commit
fa4d16e0
authored
Jul 31, 2020
by
vyzo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add topics to Reject/Duplicate/Deliver events
parent
15f4f1f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
295 additions
and
115 deletions
+295
-115
pb/trace.pb.go
pb/trace.pb.go
+292
-115
pb/trace.proto
pb/trace.proto
+3
-0
No files found.
pb/trace.pb.go
View file @
fa4d16e0
...
...
@@ -320,6 +320,7 @@ type TraceEvent_RejectMessage struct {
MessageID []byte `protobuf:"bytes,1,opt,name=messageID" json:"messageID,omitempty"`
ReceivedFrom []byte `protobuf:"bytes,2,opt,name=receivedFrom" json:"receivedFrom,omitempty"`
Reason *string `protobuf:"bytes,3,opt,name=reason" json:"reason,omitempty"`
Topics []string `protobuf:"bytes,4,rep,name=topics" json:"topics,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
...
...
@@ -379,9 +380,17 @@ func (m *TraceEvent_RejectMessage) GetReason() string {
return ""
}
func (m *TraceEvent_RejectMessage) GetTopics() []string {
if m != nil {
return m.Topics
}
return nil
}
type TraceEvent_DuplicateMessage struct {
MessageID []byte `protobuf:"bytes,1,opt,name=messageID" json:"messageID,omitempty"`
ReceivedFrom []byte `protobuf:"bytes,2,opt,name=receivedFrom" json:"receivedFrom,omitempty"`
Topics []string `protobuf:"bytes,3,rep,name=topics" json:"topics,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
...
...
@@ -434,8 +443,16 @@ func (m *TraceEvent_DuplicateMessage) GetReceivedFrom() []byte {
return nil
}
func (m *TraceEvent_DuplicateMessage) GetTopics() []string {
if m != nil {
return m.Topics
}
return nil
}
type TraceEvent_DeliverMessage struct {
MessageID []byte `protobuf:"bytes,1,opt,name=messageID" json:"messageID,omitempty"`
Topics []string `protobuf:"bytes,2,rep,name=topics" json:"topics,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
...
...
@@ -481,6 +498,13 @@ func (m *TraceEvent_DeliverMessage) GetMessageID() []byte {
return nil
}
func (m *TraceEvent_DeliverMessage) GetTopics() []string {
if m != nil {
return m.Topics
}
return nil
}
type TraceEvent_AddPeer struct {
PeerID []byte `protobuf:"bytes,1,opt,name=peerID" json:"peerID,omitempty"`
Proto *string `protobuf:"bytes,2,opt,name=proto" json:"proto,omitempty"`
...
...
@@ -1477,70 +1501,64 @@ func init() {
func init() { proto.RegisterFile("trace.proto", fileDescriptor_0571941a1d628a80) }
var fileDescriptor_0571941a1d628a80 = []byte{
// 993 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x96, 0xdb, 0x6e, 0xdb, 0x46,
0x10, 0x86, 0x4b, 0x1d, 0x2c, 0x69, 0x24, 0xcb, 0xec, 0xb6, 0x2e, 0x08, 0x36, 0x31, 0x54, 0x37,
0x08, 0x04, 0x14, 0x10, 0x10, 0x03, 0x45, 0x2e, 0x9a, 0x04, 0x95, 0x45, 0xda, 0x96, 0x21, 0xdb,
0xc4, 0x48, 0x76, 0x2f, 0x5d, 0x4a, 0xda, 0xc6, 0x0c, 0x24, 0x92, 0x20, 0x57, 0x2a, 0xf2, 0x00,
0x7d, 0xb7, 0xdc, 0xb5, 0x8f, 0x50, 0xf8, 0x41, 0x8a, 0x62, 0x77, 0x49, 0xea, 0x60, 0x92, 0x49,
0xdd, 0xdc, 0x71, 0x96, 0xff, 0x37, 0x3b, 0xbb, 0x9c, 0x7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, 0x4d, 0x40, 0x87, 0x70, 0x60, 0xde, 0xd9, 0x83, 0x7e, 0xaf, 0x3b, 0xb2, 0xf2,
0xe5, 0x3d, 0xaa, 0x37, 0xad, 0x41, 0xff, 0xde, 0x72, 0xf2, 0xc5, 0x0a, 0x52, 0xa1, 0xd6, 0x35,
0xcd, 0x07, 0xdb, 0xb2, 0x1c, 0x5d, 0x44, 0xfb, 0x50, 0x77, 0xac, 0xeb, 0xdb, 0x7b, 0x8b, 0x2f,
0x48, 0xf4, 0xb3, 0x63, 0xf5, 0xee, 0x1f, 0x1c, 0xbb, 0xa7, 0x57, 0xe9, 0x6c, 0x68, 0xdd, 0x98,
0x6c, 0x26, 0xd3, 0x99, 0xe9, 0xdc, 0xda, 0x6c, 0x56, 0x43, 0x35, 0x10, 0xaf, 0x6e, 0xfb, 0x37,
0xba, 0x82, 0x14, 0x90, 0x06, 0x56, 0xf7, 0xde, 0xd2, 0x81, 0x0e, 0x2f, 0x9d, 0xee, 0xc5, 0x48,
0xaf, 0xd3, 0xa1, 0xed, 0xdc, 0xdd, 0x58, 0xba, 0x7a, 0xfc, 0x0d, 0xec, 0x2f, 0x0f, 0xe9, 0xdc,
0x25, 0xde, 0x23, 0x7a, 0x0e, 0xd2, 0x98, 0x0e, 0x52, 0xd3, 0x1d, 0x96, 0x9e, 0xe7, 0xb9, 0xfa,
0xfb, 0xd3, 0x91, 0xf0, 0xe7, 0xd3, 0x91, 0xf0, 0xd7, 0xd3, 0x91, 0xf0, 0x4f, 0x00, 0x00, 0x00,
0xff, 0xff, 0x99, 0xba, 0xca, 0x75, 0x8a, 0x09, 0x00, 0x00,
}
func (m *TraceEvent) Marshal() (dAtA []byte, err error) {
...
...
@@ -1578,9 +1596,9 @@ func (m *TraceEvent) MarshalTo(dAtA []byte) (int, error) {
dAtA[i] = 0x22
i++
i = encodeVarintTrace(dAtA, i, uint64(m.PublishMessage.Size()))
n1, err
1
:= m.PublishMessage.MarshalTo(dAtA[i:])
if err
1
!= nil {
return 0, err
1
n1, err := m.PublishMessage.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n1
}
...
...
@@ -1588,9 +1606,9 @@ func (m *TraceEvent) MarshalTo(dAtA []byte) (int, error) {
dAtA[i] = 0x2a
i++
i = encodeVarintTrace(dAtA, i, uint64(m.RejectMessage.Size()))
n2, err
2
:= m.RejectMessage.MarshalTo(dAtA[i:])
if err
2
!= nil {
return 0, err
2
n2, err := m.RejectMessage.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n2
}
...
...
@@ -1598,9 +1616,9 @@ func (m *TraceEvent) MarshalTo(dAtA []byte) (int, error) {
dAtA[i] = 0x32
i++
i = encodeVarintTrace(dAtA, i, uint64(m.DuplicateMessage.Size()))
n3, err
3
:= m.DuplicateMessage.MarshalTo(dAtA[i:])
if err
3
!= nil {
return 0, err
3
n3, err := m.DuplicateMessage.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n3
}
...
...
@@ -1608,9 +1626,9 @@ func (m *TraceEvent) MarshalTo(dAtA []byte) (int, error) {
dAtA[i] = 0x3a
i++
i = encodeVarintTrace(dAtA, i, uint64(m.DeliverMessage.Size()))
n4, err
4
:= m.DeliverMessage.MarshalTo(dAtA[i:])
if err
4
!= nil {
return 0, err
4
n4, err := m.DeliverMessage.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n4
}
...
...
@@ -1618,9 +1636,9 @@ func (m *TraceEvent) MarshalTo(dAtA []byte) (int, error) {
dAtA[i] = 0x42
i++
i = encodeVarintTrace(dAtA, i, uint64(m.AddPeer.Size()))
n5, err
5
:= m.AddPeer.MarshalTo(dAtA[i:])
if err
5
!= nil {
return 0, err
5
n5, err := m.AddPeer.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n5
}
...
...
@@ -1628,9 +1646,9 @@ func (m *TraceEvent) MarshalTo(dAtA []byte) (int, error) {
dAtA[i] = 0x4a
i++
i = encodeVarintTrace(dAtA, i, uint64(m.RemovePeer.Size()))
n6, err
6
:= m.RemovePeer.MarshalTo(dAtA[i:])
if err
6
!= nil {
return 0, err
6
n6, err := m.RemovePeer.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n6
}
...
...
@@ -1638,9 +1656,9 @@ func (m *TraceEvent) MarshalTo(dAtA []byte) (int, error) {
dAtA[i] = 0x52
i++
i = encodeVarintTrace(dAtA, i, uint64(m.RecvRPC.Size()))
n7, err
7
:= m.RecvRPC.MarshalTo(dAtA[i:])
if err
7
!= nil {
return 0, err
7
n7, err := m.RecvRPC.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n7
}
...
...
@@ -1648,9 +1666,9 @@ func (m *TraceEvent) MarshalTo(dAtA []byte) (int, error) {
dAtA[i] = 0x5a
i++
i = encodeVarintTrace(dAtA, i, uint64(m.SendRPC.Size()))
n8, err
8
:= m.SendRPC.MarshalTo(dAtA[i:])
if err
8
!= nil {
return 0, err
8
n8, err := m.SendRPC.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n8
}
...
...
@@ -1658,9 +1676,9 @@ func (m *TraceEvent) MarshalTo(dAtA []byte) (int, error) {
dAtA[i] = 0x62
i++
i = encodeVarintTrace(dAtA, i, uint64(m.DropRPC.Size()))
n9, err
9
:= m.DropRPC.MarshalTo(dAtA[i:])
if err
9
!= nil {
return 0, err
9
n9, err := m.DropRPC.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n9
}
...
...
@@ -1668,9 +1686,9 @@ func (m *TraceEvent) MarshalTo(dAtA []byte) (int, error) {
dAtA[i] = 0x6a
i++
i = encodeVarintTrace(dAtA, i, uint64(m.Join.Size()))
n10, err
10
:= m.Join.MarshalTo(dAtA[i:])
if err
10
!= nil {
return 0, err
10
n10, err := m.Join.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n10
}
...
...
@@ -1678,9 +1696,9 @@ func (m *TraceEvent) MarshalTo(dAtA []byte) (int, error) {
dAtA[i] = 0x72
i++
i = encodeVarintTrace(dAtA, i, uint64(m.Leave.Size()))
n11, err
11
:= m.Leave.MarshalTo(dAtA[i:])
if err
11
!= nil {
return 0, err
11
n11, err := m.Leave.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n11
}
...
...
@@ -1688,9 +1706,9 @@ func (m *TraceEvent) MarshalTo(dAtA []byte) (int, error) {
dAtA[i] = 0x7a
i++
i = encodeVarintTrace(dAtA, i, uint64(m.Graft.Size()))
n12, err
12
:= m.Graft.MarshalTo(dAtA[i:])
if err
12
!= nil {
return 0, err
12
n12, err := m.Graft.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n12
}
...
...
@@ -1700,9 +1718,9 @@ func (m *TraceEvent) MarshalTo(dAtA []byte) (int, error) {
dAtA[i] = 0x1
i++
i = encodeVarintTrace(dAtA, i, uint64(m.Prune.Size()))
n13, err
13
:= m.Prune.MarshalTo(dAtA[i:])
if err
13
!= nil {
return 0, err
13
n13, err := m.Prune.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n13
}
...
...
@@ -1787,6 +1805,21 @@ func (m *TraceEvent_RejectMessage) MarshalTo(dAtA []byte) (int, error) {
i = encodeVarintTrace(dAtA, i, uint64(len(*m.Reason)))
i += copy(dAtA[i:], *m.Reason)
}
if len(m.Topics) > 0 {
for _, s := range m.Topics {
dAtA[i] = 0x22
i++
l = len(s)
for l >= 1<<7 {
dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
l >>= 7
i++
}
dAtA[i] = uint8(l)
i++
i += copy(dAtA[i:], s)
}
}
if m.XXX_unrecognized != nil {
i += copy(dAtA[i:], m.XXX_unrecognized)
}
...
...
@@ -1820,6 +1853,21 @@ func (m *TraceEvent_DuplicateMessage) MarshalTo(dAtA []byte) (int, error) {
i = encodeVarintTrace(dAtA, i, uint64(len(m.ReceivedFrom)))
i += copy(dAtA[i:], m.ReceivedFrom)
}
if len(m.Topics) > 0 {
for _, s := range m.Topics {
dAtA[i] = 0x1a
i++
l = len(s)
for l >= 1<<7 {
dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
l >>= 7
i++
}
dAtA[i] = uint8(l)
i++
i += copy(dAtA[i:], s)
}
}
if m.XXX_unrecognized != nil {
i += copy(dAtA[i:], m.XXX_unrecognized)
}
...
...
@@ -1847,6 +1895,21 @@ func (m *TraceEvent_DeliverMessage) MarshalTo(dAtA []byte) (int, error) {
i = encodeVarintTrace(dAtA, i, uint64(len(m.MessageID)))
i += copy(dAtA[i:], m.MessageID)
}
if len(m.Topics) > 0 {
for _, s := range m.Topics {
dAtA[i] = 0x12
i++
l = len(s)
for l >= 1<<7 {
dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
l >>= 7
i++
}
dAtA[i] = uint8(l)
i++
i += copy(dAtA[i:], s)
}
}
if m.XXX_unrecognized != nil {
i += copy(dAtA[i:], m.XXX_unrecognized)
}
...
...
@@ -1938,9 +2001,9 @@ func (m *TraceEvent_RecvRPC) MarshalTo(dAtA []byte) (int, error) {
dAtA[i] = 0x12
i++
i = encodeVarintTrace(dAtA, i, uint64(m.Meta.Size()))
n14, err
14
:= m.Meta.MarshalTo(dAtA[i:])
if err
14
!= nil {
return 0, err
14
n14, err := m.Meta.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n14
}
...
...
@@ -1975,9 +2038,9 @@ func (m *TraceEvent_SendRPC) MarshalTo(dAtA []byte) (int, error) {
dAtA[i] = 0x12
i++
i = encodeVarintTrace(dAtA, i, uint64(m.Meta.Size()))
n15, err
15
:= m.Meta.MarshalTo(dAtA[i:])
if err
15
!= nil {
return 0, err
15
n15, err := m.Meta.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n15
}
...
...
@@ -2012,9 +2075,9 @@ func (m *TraceEvent_DropRPC) MarshalTo(dAtA []byte) (int, error) {
dAtA[i] = 0x12
i++
i = encodeVarintTrace(dAtA, i, uint64(m.Meta.Size()))
n16, err
16
:= m.Meta.MarshalTo(dAtA[i:])
if err
16
!= nil {
return 0, err
16
n16, err := m.Meta.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n16
}
...
...
@@ -2187,9 +2250,9 @@ func (m *TraceEvent_RPCMeta) MarshalTo(dAtA []byte) (int, error) {
dAtA[i] = 0x1a
i++
i = encodeVarintTrace(dAtA, i, uint64(m.Control.Size()))
n17, err
17
:= m.Control.MarshalTo(dAtA[i:])
if err
17
!= nil {
return 0, err
17
n17, err := m.Control.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n17
}
...
...
@@ -2629,6 +2692,12 @@ func (m *TraceEvent_RejectMessage) Size() (n int) {
l = len(*m.Reason)
n += 1 + l + sovTrace(uint64(l))
}
if len(m.Topics) > 0 {
for _, s := range m.Topics {
l = len(s)
n += 1 + l + sovTrace(uint64(l))
}
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
...
...
@@ -2649,6 +2718,12 @@ func (m *TraceEvent_DuplicateMessage) Size() (n int) {
l = len(m.ReceivedFrom)
n += 1 + l + sovTrace(uint64(l))
}
if len(m.Topics) > 0 {
for _, s := range m.Topics {
l = len(s)
n += 1 + l + sovTrace(uint64(l))
}
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
...
...
@@ -2665,6 +2740,12 @@ func (m *TraceEvent_DeliverMessage) Size() (n int) {
l = len(m.MessageID)
n += 1 + l + sovTrace(uint64(l))
}
if len(m.Topics) > 0 {
for _, s := range m.Topics {
l = len(s)
n += 1 + l + sovTrace(uint64(l))
}
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
...
...
@@ -3899,6 +3980,38 @@ func (m *TraceEvent_RejectMessage) Unmarshal(dAtA []byte) error {
s := string(dAtA[iNdEx:postIndex])
m.Reason = &s
iNdEx = postIndex
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Topics", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTrace
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTrace
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTrace
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Topics = append(m.Topics, string(dAtA[iNdEx:postIndex]))
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipTrace(dAtA[iNdEx:])
...
...
@@ -4021,6 +4134,38 @@ func (m *TraceEvent_DuplicateMessage) Unmarshal(dAtA []byte) error {
m.ReceivedFrom = []byte{}
}
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Topics", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTrace
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTrace
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTrace
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Topics = append(m.Topics, string(dAtA[iNdEx:postIndex]))
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipTrace(dAtA[iNdEx:])
...
...
@@ -4109,6 +4254,38 @@ func (m *TraceEvent_DeliverMessage) Unmarshal(dAtA []byte) error {
m.MessageID = []byte{}
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Topics", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTrace
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTrace
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTrace
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Topics = append(m.Topics, string(dAtA[iNdEx:postIndex]))
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipTrace(dAtA[iNdEx:])
...
...
pb/trace.proto
View file @
fa4d16e0
...
...
@@ -46,15 +46,18 @@ message TraceEvent {
optional
bytes
messageID
=
1
;
optional
bytes
receivedFrom
=
2
;
optional
string
reason
=
3
;
repeated
string
topics
=
4
;
}
message
DuplicateMessage
{
optional
bytes
messageID
=
1
;
optional
bytes
receivedFrom
=
2
;
repeated
string
topics
=
3
;
}
message
DeliverMessage
{
optional
bytes
messageID
=
1
;
repeated
string
topics
=
2
;
}
message
AddPeer
{
...
...
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