Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sidecar
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
sidecar
Commits
71978d8d
Commit
71978d8d
authored
Apr 07, 2022
by
suyanlong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitlab.33.cn/link33/sidecar
parents
3c662c5f
04eb4a2e
Pipeline
#8626
canceled with stages
Changes
6
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
286 additions
and
199 deletions
+286
-199
basic.pb.go
model/pb/basic.pb.go
+1
-70
ibtp.go
model/pb/ibtp.go
+67
-0
ibtp.pb.go
model/pb/ibtp.pb.go
+211
-78
ibtp.proto
model/pb/ibtp.proto
+4
-0
ibtpx.pb.go
model/pb/ibtpx.pb.go
+1
-16
message.pb.go
model/pb/message.pb.go
+2
-35
No files found.
model/pb/basic.pb.go
View file @
71978d8d
...
@@ -5,18 +5,15 @@ package pb
...
@@ -5,18 +5,15 @@ package pb
import
(
import
(
fmt
"fmt"
fmt
"fmt"
proto
"github.com/gogo/protobuf/proto"
io
"io"
io
"io"
math
"math"
math
"math"
math_bits
"math/bits"
math_bits
"math/bits"
proto
"github.com/gogo/protobuf/proto"
)
)
// Reference imports to suppress errors if they are not otherwise used.
// Reference imports to suppress errors if they are not otherwise used.
var
_
=
proto
.
Marshal
var
_
=
proto
.
Marshal
var
_
=
fmt
.
Errorf
var
_
=
fmt
.
Errorf
var
_
=
math
.
Inf
var
_
=
math
.
Inf
// This is a compile-time assertion to ensure that this generated file
// This is a compile-time assertion to ensure that this generated file
...
@@ -30,19 +27,14 @@ type Uint64Slice struct {
...
@@ -30,19 +27,14 @@ type Uint64Slice struct {
}
}
func
(
m
*
Uint64Slice
)
Reset
()
{
*
m
=
Uint64Slice
{}
}
func
(
m
*
Uint64Slice
)
Reset
()
{
*
m
=
Uint64Slice
{}
}
func
(
m
*
Uint64Slice
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
Uint64Slice
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
Uint64Slice
)
ProtoMessage
()
{}
func
(
*
Uint64Slice
)
ProtoMessage
()
{}
func
(
*
Uint64Slice
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
Uint64Slice
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_0cc45f6ac745dd88
,
[]
int
{
0
}
return
fileDescriptor_0cc45f6ac745dd88
,
[]
int
{
0
}
}
}
func
(
m
*
Uint64Slice
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
Uint64Slice
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
m
.
Unmarshal
(
b
)
return
m
.
Unmarshal
(
b
)
}
}
func
(
m
*
Uint64Slice
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
func
(
m
*
Uint64Slice
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
if
deterministic
{
if
deterministic
{
return
xxx_messageInfo_Uint64Slice
.
Marshal
(
b
,
m
,
deterministic
)
return
xxx_messageInfo_Uint64Slice
.
Marshal
(
b
,
m
,
deterministic
)
...
@@ -55,15 +47,12 @@ func (m *Uint64Slice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
...
@@ -55,15 +47,12 @@ func (m *Uint64Slice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
return
b
[
:
n
],
nil
return
b
[
:
n
],
nil
}
}
}
}
func
(
m
*
Uint64Slice
)
XXX_Merge
(
src
proto
.
Message
)
{
func
(
m
*
Uint64Slice
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Uint64Slice
.
Merge
(
m
,
src
)
xxx_messageInfo_Uint64Slice
.
Merge
(
m
,
src
)
}
}
func
(
m
*
Uint64Slice
)
XXX_Size
()
int
{
func
(
m
*
Uint64Slice
)
XXX_Size
()
int
{
return
m
.
Size
()
return
m
.
Size
()
}
}
func
(
m
*
Uint64Slice
)
XXX_DiscardUnknown
()
{
func
(
m
*
Uint64Slice
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_Uint64Slice
.
DiscardUnknown
(
m
)
xxx_messageInfo_Uint64Slice
.
DiscardUnknown
(
m
)
}
}
...
@@ -83,19 +72,14 @@ type StringUint64Map struct {
...
@@ -83,19 +72,14 @@ type StringUint64Map struct {
}
}
func
(
m
*
StringUint64Map
)
Reset
()
{
*
m
=
StringUint64Map
{}
}
func
(
m
*
StringUint64Map
)
Reset
()
{
*
m
=
StringUint64Map
{}
}
func
(
m
*
StringUint64Map
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
StringUint64Map
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
StringUint64Map
)
ProtoMessage
()
{}
func
(
*
StringUint64Map
)
ProtoMessage
()
{}
func
(
*
StringUint64Map
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
StringUint64Map
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_0cc45f6ac745dd88
,
[]
int
{
1
}
return
fileDescriptor_0cc45f6ac745dd88
,
[]
int
{
1
}
}
}
func
(
m
*
StringUint64Map
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
StringUint64Map
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
m
.
Unmarshal
(
b
)
return
m
.
Unmarshal
(
b
)
}
}
func
(
m
*
StringUint64Map
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
func
(
m
*
StringUint64Map
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
if
deterministic
{
if
deterministic
{
return
xxx_messageInfo_StringUint64Map
.
Marshal
(
b
,
m
,
deterministic
)
return
xxx_messageInfo_StringUint64Map
.
Marshal
(
b
,
m
,
deterministic
)
...
@@ -108,15 +92,12 @@ func (m *StringUint64Map) XXX_Marshal(b []byte, deterministic bool) ([]byte, err
...
@@ -108,15 +92,12 @@ func (m *StringUint64Map) XXX_Marshal(b []byte, deterministic bool) ([]byte, err
return
b
[
:
n
],
nil
return
b
[
:
n
],
nil
}
}
}
}
func
(
m
*
StringUint64Map
)
XXX_Merge
(
src
proto
.
Message
)
{
func
(
m
*
StringUint64Map
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_StringUint64Map
.
Merge
(
m
,
src
)
xxx_messageInfo_StringUint64Map
.
Merge
(
m
,
src
)
}
}
func
(
m
*
StringUint64Map
)
XXX_Size
()
int
{
func
(
m
*
StringUint64Map
)
XXX_Size
()
int
{
return
m
.
Size
()
return
m
.
Size
()
}
}
func
(
m
*
StringUint64Map
)
XXX_DiscardUnknown
()
{
func
(
m
*
StringUint64Map
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_StringUint64Map
.
DiscardUnknown
(
m
)
xxx_messageInfo_StringUint64Map
.
DiscardUnknown
(
m
)
}
}
...
@@ -143,19 +124,14 @@ type StringUint64SliceMap struct {
...
@@ -143,19 +124,14 @@ type StringUint64SliceMap struct {
}
}
func
(
m
*
StringUint64SliceMap
)
Reset
()
{
*
m
=
StringUint64SliceMap
{}
}
func
(
m
*
StringUint64SliceMap
)
Reset
()
{
*
m
=
StringUint64SliceMap
{}
}
func
(
m
*
StringUint64SliceMap
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
StringUint64SliceMap
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
StringUint64SliceMap
)
ProtoMessage
()
{}
func
(
*
StringUint64SliceMap
)
ProtoMessage
()
{}
func
(
*
StringUint64SliceMap
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
StringUint64SliceMap
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_0cc45f6ac745dd88
,
[]
int
{
2
}
return
fileDescriptor_0cc45f6ac745dd88
,
[]
int
{
2
}
}
}
func
(
m
*
StringUint64SliceMap
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
StringUint64SliceMap
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
m
.
Unmarshal
(
b
)
return
m
.
Unmarshal
(
b
)
}
}
func
(
m
*
StringUint64SliceMap
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
func
(
m
*
StringUint64SliceMap
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
if
deterministic
{
if
deterministic
{
return
xxx_messageInfo_StringUint64SliceMap
.
Marshal
(
b
,
m
,
deterministic
)
return
xxx_messageInfo_StringUint64SliceMap
.
Marshal
(
b
,
m
,
deterministic
)
...
@@ -168,15 +144,12 @@ func (m *StringUint64SliceMap) XXX_Marshal(b []byte, deterministic bool) ([]byte
...
@@ -168,15 +144,12 @@ func (m *StringUint64SliceMap) XXX_Marshal(b []byte, deterministic bool) ([]byte
return
b
[
:
n
],
nil
return
b
[
:
n
],
nil
}
}
}
}
func
(
m
*
StringUint64SliceMap
)
XXX_Merge
(
src
proto
.
Message
)
{
func
(
m
*
StringUint64SliceMap
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_StringUint64SliceMap
.
Merge
(
m
,
src
)
xxx_messageInfo_StringUint64SliceMap
.
Merge
(
m
,
src
)
}
}
func
(
m
*
StringUint64SliceMap
)
XXX_Size
()
int
{
func
(
m
*
StringUint64SliceMap
)
XXX_Size
()
int
{
return
m
.
Size
()
return
m
.
Size
()
}
}
func
(
m
*
StringUint64SliceMap
)
XXX_DiscardUnknown
()
{
func
(
m
*
StringUint64SliceMap
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_StringUint64SliceMap
.
DiscardUnknown
(
m
)
xxx_messageInfo_StringUint64SliceMap
.
DiscardUnknown
(
m
)
}
}
...
@@ -203,19 +176,14 @@ type VerifiedIndex struct {
...
@@ -203,19 +176,14 @@ type VerifiedIndex struct {
}
}
func
(
m
*
VerifiedIndex
)
Reset
()
{
*
m
=
VerifiedIndex
{}
}
func
(
m
*
VerifiedIndex
)
Reset
()
{
*
m
=
VerifiedIndex
{}
}
func
(
m
*
VerifiedIndex
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
VerifiedIndex
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
VerifiedIndex
)
ProtoMessage
()
{}
func
(
*
VerifiedIndex
)
ProtoMessage
()
{}
func
(
*
VerifiedIndex
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
VerifiedIndex
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_0cc45f6ac745dd88
,
[]
int
{
3
}
return
fileDescriptor_0cc45f6ac745dd88
,
[]
int
{
3
}
}
}
func
(
m
*
VerifiedIndex
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
VerifiedIndex
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
m
.
Unmarshal
(
b
)
return
m
.
Unmarshal
(
b
)
}
}
func
(
m
*
VerifiedIndex
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
func
(
m
*
VerifiedIndex
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
if
deterministic
{
if
deterministic
{
return
xxx_messageInfo_VerifiedIndex
.
Marshal
(
b
,
m
,
deterministic
)
return
xxx_messageInfo_VerifiedIndex
.
Marshal
(
b
,
m
,
deterministic
)
...
@@ -228,15 +196,12 @@ func (m *VerifiedIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error
...
@@ -228,15 +196,12 @@ func (m *VerifiedIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error
return
b
[
:
n
],
nil
return
b
[
:
n
],
nil
}
}
}
}
func
(
m
*
VerifiedIndex
)
XXX_Merge
(
src
proto
.
Message
)
{
func
(
m
*
VerifiedIndex
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_VerifiedIndex
.
Merge
(
m
,
src
)
xxx_messageInfo_VerifiedIndex
.
Merge
(
m
,
src
)
}
}
func
(
m
*
VerifiedIndex
)
XXX_Size
()
int
{
func
(
m
*
VerifiedIndex
)
XXX_Size
()
int
{
return
m
.
Size
()
return
m
.
Size
()
}
}
func
(
m
*
VerifiedIndex
)
XXX_DiscardUnknown
()
{
func
(
m
*
VerifiedIndex
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_VerifiedIndex
.
DiscardUnknown
(
m
)
xxx_messageInfo_VerifiedIndex
.
DiscardUnknown
(
m
)
}
}
...
@@ -262,19 +227,14 @@ type VerifiedIndexSlice struct {
...
@@ -262,19 +227,14 @@ type VerifiedIndexSlice struct {
}
}
func
(
m
*
VerifiedIndexSlice
)
Reset
()
{
*
m
=
VerifiedIndexSlice
{}
}
func
(
m
*
VerifiedIndexSlice
)
Reset
()
{
*
m
=
VerifiedIndexSlice
{}
}
func
(
m
*
VerifiedIndexSlice
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
VerifiedIndexSlice
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
VerifiedIndexSlice
)
ProtoMessage
()
{}
func
(
*
VerifiedIndexSlice
)
ProtoMessage
()
{}
func
(
*
VerifiedIndexSlice
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
VerifiedIndexSlice
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_0cc45f6ac745dd88
,
[]
int
{
4
}
return
fileDescriptor_0cc45f6ac745dd88
,
[]
int
{
4
}
}
}
func
(
m
*
VerifiedIndexSlice
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
VerifiedIndexSlice
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
m
.
Unmarshal
(
b
)
return
m
.
Unmarshal
(
b
)
}
}
func
(
m
*
VerifiedIndexSlice
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
func
(
m
*
VerifiedIndexSlice
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
if
deterministic
{
if
deterministic
{
return
xxx_messageInfo_VerifiedIndexSlice
.
Marshal
(
b
,
m
,
deterministic
)
return
xxx_messageInfo_VerifiedIndexSlice
.
Marshal
(
b
,
m
,
deterministic
)
...
@@ -287,15 +247,12 @@ func (m *VerifiedIndexSlice) XXX_Marshal(b []byte, deterministic bool) ([]byte,
...
@@ -287,15 +247,12 @@ func (m *VerifiedIndexSlice) XXX_Marshal(b []byte, deterministic bool) ([]byte,
return
b
[
:
n
],
nil
return
b
[
:
n
],
nil
}
}
}
}
func
(
m
*
VerifiedIndexSlice
)
XXX_Merge
(
src
proto
.
Message
)
{
func
(
m
*
VerifiedIndexSlice
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_VerifiedIndexSlice
.
Merge
(
m
,
src
)
xxx_messageInfo_VerifiedIndexSlice
.
Merge
(
m
,
src
)
}
}
func
(
m
*
VerifiedIndexSlice
)
XXX_Size
()
int
{
func
(
m
*
VerifiedIndexSlice
)
XXX_Size
()
int
{
return
m
.
Size
()
return
m
.
Size
()
}
}
func
(
m
*
VerifiedIndexSlice
)
XXX_DiscardUnknown
()
{
func
(
m
*
VerifiedIndexSlice
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_VerifiedIndexSlice
.
DiscardUnknown
(
m
)
xxx_messageInfo_VerifiedIndexSlice
.
DiscardUnknown
(
m
)
}
}
...
@@ -315,19 +272,14 @@ type StringVerifiedIndexMap struct {
...
@@ -315,19 +272,14 @@ type StringVerifiedIndexMap struct {
}
}
func
(
m
*
StringVerifiedIndexMap
)
Reset
()
{
*
m
=
StringVerifiedIndexMap
{}
}
func
(
m
*
StringVerifiedIndexMap
)
Reset
()
{
*
m
=
StringVerifiedIndexMap
{}
}
func
(
m
*
StringVerifiedIndexMap
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
StringVerifiedIndexMap
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
StringVerifiedIndexMap
)
ProtoMessage
()
{}
func
(
*
StringVerifiedIndexMap
)
ProtoMessage
()
{}
func
(
*
StringVerifiedIndexMap
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
StringVerifiedIndexMap
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_0cc45f6ac745dd88
,
[]
int
{
5
}
return
fileDescriptor_0cc45f6ac745dd88
,
[]
int
{
5
}
}
}
func
(
m
*
StringVerifiedIndexMap
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
StringVerifiedIndexMap
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
m
.
Unmarshal
(
b
)
return
m
.
Unmarshal
(
b
)
}
}
func
(
m
*
StringVerifiedIndexMap
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
func
(
m
*
StringVerifiedIndexMap
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
if
deterministic
{
if
deterministic
{
return
xxx_messageInfo_StringVerifiedIndexMap
.
Marshal
(
b
,
m
,
deterministic
)
return
xxx_messageInfo_StringVerifiedIndexMap
.
Marshal
(
b
,
m
,
deterministic
)
...
@@ -340,15 +292,12 @@ func (m *StringVerifiedIndexMap) XXX_Marshal(b []byte, deterministic bool) ([]by
...
@@ -340,15 +292,12 @@ func (m *StringVerifiedIndexMap) XXX_Marshal(b []byte, deterministic bool) ([]by
return
b
[
:
n
],
nil
return
b
[
:
n
],
nil
}
}
}
}
func
(
m
*
StringVerifiedIndexMap
)
XXX_Merge
(
src
proto
.
Message
)
{
func
(
m
*
StringVerifiedIndexMap
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_StringVerifiedIndexMap
.
Merge
(
m
,
src
)
xxx_messageInfo_StringVerifiedIndexMap
.
Merge
(
m
,
src
)
}
}
func
(
m
*
StringVerifiedIndexMap
)
XXX_Size
()
int
{
func
(
m
*
StringVerifiedIndexMap
)
XXX_Size
()
int
{
return
m
.
Size
()
return
m
.
Size
()
}
}
func
(
m
*
StringVerifiedIndexMap
)
XXX_DiscardUnknown
()
{
func
(
m
*
StringVerifiedIndexMap
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_StringVerifiedIndexMap
.
DiscardUnknown
(
m
)
xxx_messageInfo_StringVerifiedIndexMap
.
DiscardUnknown
(
m
)
}
}
...
@@ -375,19 +324,14 @@ type StringVerifiedIndexSliceMap struct {
...
@@ -375,19 +324,14 @@ type StringVerifiedIndexSliceMap struct {
}
}
func
(
m
*
StringVerifiedIndexSliceMap
)
Reset
()
{
*
m
=
StringVerifiedIndexSliceMap
{}
}
func
(
m
*
StringVerifiedIndexSliceMap
)
Reset
()
{
*
m
=
StringVerifiedIndexSliceMap
{}
}
func
(
m
*
StringVerifiedIndexSliceMap
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
StringVerifiedIndexSliceMap
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
StringVerifiedIndexSliceMap
)
ProtoMessage
()
{}
func
(
*
StringVerifiedIndexSliceMap
)
ProtoMessage
()
{}
func
(
*
StringVerifiedIndexSliceMap
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
StringVerifiedIndexSliceMap
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_0cc45f6ac745dd88
,
[]
int
{
6
}
return
fileDescriptor_0cc45f6ac745dd88
,
[]
int
{
6
}
}
}
func
(
m
*
StringVerifiedIndexSliceMap
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
StringVerifiedIndexSliceMap
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
m
.
Unmarshal
(
b
)
return
m
.
Unmarshal
(
b
)
}
}
func
(
m
*
StringVerifiedIndexSliceMap
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
func
(
m
*
StringVerifiedIndexSliceMap
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
if
deterministic
{
if
deterministic
{
return
xxx_messageInfo_StringVerifiedIndexSliceMap
.
Marshal
(
b
,
m
,
deterministic
)
return
xxx_messageInfo_StringVerifiedIndexSliceMap
.
Marshal
(
b
,
m
,
deterministic
)
...
@@ -400,15 +344,12 @@ func (m *StringVerifiedIndexSliceMap) XXX_Marshal(b []byte, deterministic bool)
...
@@ -400,15 +344,12 @@ func (m *StringVerifiedIndexSliceMap) XXX_Marshal(b []byte, deterministic bool)
return
b
[
:
n
],
nil
return
b
[
:
n
],
nil
}
}
}
}
func
(
m
*
StringVerifiedIndexSliceMap
)
XXX_Merge
(
src
proto
.
Message
)
{
func
(
m
*
StringVerifiedIndexSliceMap
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_StringVerifiedIndexSliceMap
.
Merge
(
m
,
src
)
xxx_messageInfo_StringVerifiedIndexSliceMap
.
Merge
(
m
,
src
)
}
}
func
(
m
*
StringVerifiedIndexSliceMap
)
XXX_Size
()
int
{
func
(
m
*
StringVerifiedIndexSliceMap
)
XXX_Size
()
int
{
return
m
.
Size
()
return
m
.
Size
()
}
}
func
(
m
*
StringVerifiedIndexSliceMap
)
XXX_DiscardUnknown
()
{
func
(
m
*
StringVerifiedIndexSliceMap
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_StringVerifiedIndexSliceMap
.
DiscardUnknown
(
m
)
xxx_messageInfo_StringVerifiedIndexSliceMap
.
DiscardUnknown
(
m
)
}
}
...
@@ -777,7 +718,6 @@ func encodeVarintBasic(dAtA []byte, offset int, v uint64) int {
...
@@ -777,7 +718,6 @@ func encodeVarintBasic(dAtA []byte, offset int, v uint64) int {
dAtA
[
offset
]
=
uint8
(
v
)
dAtA
[
offset
]
=
uint8
(
v
)
return
base
return
base
}
}
func
(
m
*
Uint64Slice
)
Size
()
(
n
int
)
{
func
(
m
*
Uint64Slice
)
Size
()
(
n
int
)
{
if
m
==
nil
{
if
m
==
nil
{
return
0
return
0
...
@@ -912,11 +852,9 @@ func (m *StringVerifiedIndexSliceMap) Size() (n int) {
...
@@ -912,11 +852,9 @@ func (m *StringVerifiedIndexSliceMap) Size() (n int) {
func
sovBasic
(
x
uint64
)
(
n
int
)
{
func
sovBasic
(
x
uint64
)
(
n
int
)
{
return
(
math_bits
.
Len64
(
x
|
1
)
+
6
)
/
7
return
(
math_bits
.
Len64
(
x
|
1
)
+
6
)
/
7
}
}
func
sozBasic
(
x
uint64
)
(
n
int
)
{
func
sozBasic
(
x
uint64
)
(
n
int
)
{
return
sovBasic
(
uint64
((
x
<<
1
)
^
uint64
((
int64
(
x
)
>>
63
))))
return
sovBasic
(
uint64
((
x
<<
1
)
^
uint64
((
int64
(
x
)
>>
63
))))
}
}
func
(
m
*
Uint64Slice
)
Unmarshal
(
dAtA
[]
byte
)
error
{
func
(
m
*
Uint64Slice
)
Unmarshal
(
dAtA
[]
byte
)
error
{
l
:=
len
(
dAtA
)
l
:=
len
(
dAtA
)
iNdEx
:=
0
iNdEx
:=
0
...
@@ -1043,7 +981,6 @@ func (m *Uint64Slice) Unmarshal(dAtA []byte) error {
...
@@ -1043,7 +981,6 @@ func (m *Uint64Slice) Unmarshal(dAtA []byte) error {
}
}
return
nil
return
nil
}
}
func
(
m
*
StringUint64Map
)
Unmarshal
(
dAtA
[]
byte
)
error
{
func
(
m
*
StringUint64Map
)
Unmarshal
(
dAtA
[]
byte
)
error
{
l
:=
len
(
dAtA
)
l
:=
len
(
dAtA
)
iNdEx
:=
0
iNdEx
:=
0
...
@@ -1202,7 +1139,6 @@ func (m *StringUint64Map) Unmarshal(dAtA []byte) error {
...
@@ -1202,7 +1139,6 @@ func (m *StringUint64Map) Unmarshal(dAtA []byte) error {
}
}
return
nil
return
nil
}
}
func
(
m
*
StringUint64SliceMap
)
Unmarshal
(
dAtA
[]
byte
)
error
{
func
(
m
*
StringUint64SliceMap
)
Unmarshal
(
dAtA
[]
byte
)
error
{
l
:=
len
(
dAtA
)
l
:=
len
(
dAtA
)
iNdEx
:=
0
iNdEx
:=
0
...
@@ -1319,7 +1255,6 @@ func (m *StringUint64SliceMap) Unmarshal(dAtA []byte) error {
...
@@ -1319,7 +1255,6 @@ func (m *StringUint64SliceMap) Unmarshal(dAtA []byte) error {
}
}
return
nil
return
nil
}
}
func
(
m
*
VerifiedIndex
)
Unmarshal
(
dAtA
[]
byte
)
error
{
func
(
m
*
VerifiedIndex
)
Unmarshal
(
dAtA
[]
byte
)
error
{
l
:=
len
(
dAtA
)
l
:=
len
(
dAtA
)
iNdEx
:=
0
iNdEx
:=
0
...
@@ -1409,7 +1344,6 @@ func (m *VerifiedIndex) Unmarshal(dAtA []byte) error {
...
@@ -1409,7 +1344,6 @@ func (m *VerifiedIndex) Unmarshal(dAtA []byte) error {
}
}
return
nil
return
nil
}
}
func
(
m
*
VerifiedIndexSlice
)
Unmarshal
(
dAtA
[]
byte
)
error
{
func
(
m
*
VerifiedIndexSlice
)
Unmarshal
(
dAtA
[]
byte
)
error
{
l
:=
len
(
dAtA
)
l
:=
len
(
dAtA
)
iNdEx
:=
0
iNdEx
:=
0
...
@@ -1494,7 +1428,6 @@ func (m *VerifiedIndexSlice) Unmarshal(dAtA []byte) error {
...
@@ -1494,7 +1428,6 @@ func (m *VerifiedIndexSlice) Unmarshal(dAtA []byte) error {
}
}
return
nil
return
nil
}
}
func
(
m
*
StringVerifiedIndexMap
)
Unmarshal
(
dAtA
[]
byte
)
error
{
func
(
m
*
StringVerifiedIndexMap
)
Unmarshal
(
dAtA
[]
byte
)
error
{
l
:=
len
(
dAtA
)
l
:=
len
(
dAtA
)
iNdEx
:=
0
iNdEx
:=
0
...
@@ -1611,7 +1544,6 @@ func (m *StringVerifiedIndexMap) Unmarshal(dAtA []byte) error {
...
@@ -1611,7 +1544,6 @@ func (m *StringVerifiedIndexMap) Unmarshal(dAtA []byte) error {
}
}
return
nil
return
nil
}
}
func
(
m
*
StringVerifiedIndexSliceMap
)
Unmarshal
(
dAtA
[]
byte
)
error
{
func
(
m
*
StringVerifiedIndexSliceMap
)
Unmarshal
(
dAtA
[]
byte
)
error
{
l
:=
len
(
dAtA
)
l
:=
len
(
dAtA
)
iNdEx
:=
0
iNdEx
:=
0
...
@@ -1728,7 +1660,6 @@ func (m *StringVerifiedIndexSliceMap) Unmarshal(dAtA []byte) error {
...
@@ -1728,7 +1660,6 @@ func (m *StringVerifiedIndexSliceMap) Unmarshal(dAtA []byte) error {
}
}
return
nil
return
nil
}
}
func
skipBasic
(
dAtA
[]
byte
)
(
n
int
,
err
error
)
{
func
skipBasic
(
dAtA
[]
byte
)
(
n
int
,
err
error
)
{
l
:=
len
(
dAtA
)
l
:=
len
(
dAtA
)
iNdEx
:=
0
iNdEx
:=
0
...
...
model/pb/ibtp.go
View file @
71978d8d
...
@@ -3,6 +3,8 @@ package pb
...
@@ -3,6 +3,8 @@ package pb
import
(
import
(
"crypto/sha256"
"crypto/sha256"
"fmt"
"fmt"
"strconv"
"strings"
"github.com/meshplus/bitxhub-kit/types"
"github.com/meshplus/bitxhub-kit/types"
)
)
...
@@ -40,3 +42,68 @@ func (m *IBTP) Category() IBTP_Category {
...
@@ -40,3 +42,68 @@ func (m *IBTP) Category() IBTP_Category {
}
}
return
IBTP_UNKNOWN
return
IBTP_UNKNOWN
}
}
func
(
m
*
IBTP
)
ServicePair
()
string
{
return
fmt
.
Sprintf
(
"%s-%s"
,
m
.
From
,
m
.
To
)
}
// ParseFrom should be called after CheckServiceID is called
func
(
m
*
IBTP
)
ParseFrom
()
(
string
,
string
,
string
)
{
bxhID
,
chainID
,
serviceID
,
_
:=
ParseFullServiceID
(
m
.
From
)
return
bxhID
,
chainID
,
serviceID
}
// ParseTo should be called after CheckServiceID is called
func
(
m
*
IBTP
)
ParseTo
()
(
string
,
string
,
string
)
{
bxhID
,
chainID
,
serviceID
,
_
:=
ParseFullServiceID
(
m
.
To
)
return
bxhID
,
chainID
,
serviceID
}
func
(
m
*
IBTP
)
CheckServiceID
()
error
{
_
,
_
,
_
,
err
:=
ParseFullServiceID
(
m
.
From
)
if
err
!=
nil
{
return
err
}
_
,
_
,
_
,
err
=
ParseFullServiceID
(
m
.
To
)
return
err
}
func
ParseFullServiceID
(
id
string
)
(
string
,
string
,
string
,
error
)
{
splits
:=
strings
.
Split
(
id
,
":"
)
if
len
(
splits
)
!=
3
{
return
""
,
""
,
""
,
fmt
.
Errorf
(
"invalid full service ID: %s"
,
id
)
}
return
splits
[
0
],
splits
[
1
],
splits
[
2
],
nil
}
func
ParseServicePair
(
servicePair
string
)
(
string
,
string
,
error
)
{
splits
:=
strings
.
Split
(
servicePair
,
"-"
)
if
len
(
splits
)
!=
2
{
return
""
,
""
,
fmt
.
Errorf
(
"invalid service pair: %s"
,
servicePair
)
}
return
splits
[
0
],
splits
[
1
],
nil
}
func
ParseIBTPID
(
id
string
)
(
string
,
string
,
uint64
,
error
)
{
splits
:=
strings
.
Split
(
id
,
"-"
)
if
len
(
splits
)
!=
3
{
return
""
,
""
,
0
,
fmt
.
Errorf
(
"invalid IBTP ID: %s"
,
id
)
}
index
,
err
:=
strconv
.
Atoi
(
splits
[
2
])
if
err
!=
nil
{
return
""
,
""
,
0
,
fmt
.
Errorf
(
"invalid IBTP ID: %s"
,
id
)
}
return
splits
[
0
],
splits
[
1
],
uint64
(
index
),
nil
}
func
GenServicePair
(
from
,
to
string
)
string
{
return
fmt
.
Sprintf
(
"%s-%s"
,
from
,
to
)
}
model/pb/ibtp.pb.go
View file @
71978d8d
...
@@ -5,18 +5,15 @@ package pb
...
@@ -5,18 +5,15 @@ package pb
import
(
import
(
fmt
"fmt"
fmt
"fmt"
proto
"github.com/gogo/protobuf/proto"
io
"io"
io
"io"
math
"math"
math
"math"
math_bits
"math/bits"
math_bits
"math/bits"
proto
"github.com/gogo/protobuf/proto"
)
)
// Reference imports to suppress errors if they are not otherwise used.
// Reference imports to suppress errors if they are not otherwise used.
var
_
=
proto
.
Marshal
var
_
=
proto
.
Marshal
var
_
=
fmt
.
Errorf
var
_
=
fmt
.
Errorf
var
_
=
math
.
Inf
var
_
=
math
.
Inf
// This is a compile-time assertion to ensure that this generated file
// This is a compile-time assertion to ensure that this generated file
...
@@ -112,19 +109,14 @@ type IBTP struct {
...
@@ -112,19 +109,14 @@ type IBTP struct {
}
}
func
(
m
*
IBTP
)
Reset
()
{
*
m
=
IBTP
{}
}
func
(
m
*
IBTP
)
Reset
()
{
*
m
=
IBTP
{}
}
func
(
m
*
IBTP
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
IBTP
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
IBTP
)
ProtoMessage
()
{}
func
(
*
IBTP
)
ProtoMessage
()
{}
func
(
*
IBTP
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
IBTP
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_7576a0a5bf0190a3
,
[]
int
{
0
}
return
fileDescriptor_7576a0a5bf0190a3
,
[]
int
{
0
}
}
}
func
(
m
*
IBTP
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
IBTP
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
m
.
Unmarshal
(
b
)
return
m
.
Unmarshal
(
b
)
}
}
func
(
m
*
IBTP
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
func
(
m
*
IBTP
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
if
deterministic
{
if
deterministic
{
return
xxx_messageInfo_IBTP
.
Marshal
(
b
,
m
,
deterministic
)
return
xxx_messageInfo_IBTP
.
Marshal
(
b
,
m
,
deterministic
)
...
@@ -137,15 +129,12 @@ func (m *IBTP) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
...
@@ -137,15 +129,12 @@ func (m *IBTP) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return
b
[
:
n
],
nil
return
b
[
:
n
],
nil
}
}
}
}
func
(
m
*
IBTP
)
XXX_Merge
(
src
proto
.
Message
)
{
func
(
m
*
IBTP
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_IBTP
.
Merge
(
m
,
src
)
xxx_messageInfo_IBTP
.
Merge
(
m
,
src
)
}
}
func
(
m
*
IBTP
)
XXX_Size
()
int
{
func
(
m
*
IBTP
)
XXX_Size
()
int
{
return
m
.
Size
()
return
m
.
Size
()
}
}
func
(
m
*
IBTP
)
XXX_DiscardUnknown
()
{
func
(
m
*
IBTP
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_IBTP
.
DiscardUnknown
(
m
)
xxx_messageInfo_IBTP
.
DiscardUnknown
(
m
)
}
}
...
@@ -228,19 +217,14 @@ type Payload struct {
...
@@ -228,19 +217,14 @@ type Payload struct {
}
}
func
(
m
*
Payload
)
Reset
()
{
*
m
=
Payload
{}
}
func
(
m
*
Payload
)
Reset
()
{
*
m
=
Payload
{}
}
func
(
m
*
Payload
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
Payload
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
Payload
)
ProtoMessage
()
{}
func
(
*
Payload
)
ProtoMessage
()
{}
func
(
*
Payload
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
Payload
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_7576a0a5bf0190a3
,
[]
int
{
1
}
return
fileDescriptor_7576a0a5bf0190a3
,
[]
int
{
1
}
}
}
func
(
m
*
Payload
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
Payload
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
m
.
Unmarshal
(
b
)
return
m
.
Unmarshal
(
b
)
}
}
func
(
m
*
Payload
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
func
(
m
*
Payload
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
if
deterministic
{
if
deterministic
{
return
xxx_messageInfo_Payload
.
Marshal
(
b
,
m
,
deterministic
)
return
xxx_messageInfo_Payload
.
Marshal
(
b
,
m
,
deterministic
)
...
@@ -253,15 +237,12 @@ func (m *Payload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
...
@@ -253,15 +237,12 @@ func (m *Payload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return
b
[
:
n
],
nil
return
b
[
:
n
],
nil
}
}
}
}
func
(
m
*
Payload
)
XXX_Merge
(
src
proto
.
Message
)
{
func
(
m
*
Payload
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Payload
.
Merge
(
m
,
src
)
xxx_messageInfo_Payload
.
Merge
(
m
,
src
)
}
}
func
(
m
*
Payload
)
XXX_Size
()
int
{
func
(
m
*
Payload
)
XXX_Size
()
int
{
return
m
.
Size
()
return
m
.
Size
()
}
}
func
(
m
*
Payload
)
XXX_DiscardUnknown
()
{
func
(
m
*
Payload
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_Payload
.
DiscardUnknown
(
m
)
xxx_messageInfo_Payload
.
DiscardUnknown
(
m
)
}
}
...
@@ -294,19 +275,14 @@ type Content struct {
...
@@ -294,19 +275,14 @@ type Content struct {
}
}
func
(
m
*
Content
)
Reset
()
{
*
m
=
Content
{}
}
func
(
m
*
Content
)
Reset
()
{
*
m
=
Content
{}
}
func
(
m
*
Content
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
Content
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
Content
)
ProtoMessage
()
{}
func
(
*
Content
)
ProtoMessage
()
{}
func
(
*
Content
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
Content
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_7576a0a5bf0190a3
,
[]
int
{
2
}
return
fileDescriptor_7576a0a5bf0190a3
,
[]
int
{
2
}
}
}
func
(
m
*
Content
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
Content
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
m
.
Unmarshal
(
b
)
return
m
.
Unmarshal
(
b
)
}
}
func
(
m
*
Content
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
func
(
m
*
Content
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
if
deterministic
{
if
deterministic
{
return
xxx_messageInfo_Content
.
Marshal
(
b
,
m
,
deterministic
)
return
xxx_messageInfo_Content
.
Marshal
(
b
,
m
,
deterministic
)
...
@@ -319,15 +295,12 @@ func (m *Content) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
...
@@ -319,15 +295,12 @@ func (m *Content) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return
b
[
:
n
],
nil
return
b
[
:
n
],
nil
}
}
}
}
func
(
m
*
Content
)
XXX_Merge
(
src
proto
.
Message
)
{
func
(
m
*
Content
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Content
.
Merge
(
m
,
src
)
xxx_messageInfo_Content
.
Merge
(
m
,
src
)
}
}
func
(
m
*
Content
)
XXX_Size
()
int
{
func
(
m
*
Content
)
XXX_Size
()
int
{
return
m
.
Size
()
return
m
.
Size
()
}
}
func
(
m
*
Content
)
XXX_DiscardUnknown
()
{
func
(
m
*
Content
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_Content
.
DiscardUnknown
(
m
)
xxx_messageInfo_Content
.
DiscardUnknown
(
m
)
}
}
...
@@ -395,19 +368,14 @@ type IBTPs struct {
...
@@ -395,19 +368,14 @@ type IBTPs struct {
}
}
func
(
m
*
IBTPs
)
Reset
()
{
*
m
=
IBTPs
{}
}
func
(
m
*
IBTPs
)
Reset
()
{
*
m
=
IBTPs
{}
}
func
(
m
*
IBTPs
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
IBTPs
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
IBTPs
)
ProtoMessage
()
{}
func
(
*
IBTPs
)
ProtoMessage
()
{}
func
(
*
IBTPs
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
IBTPs
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_7576a0a5bf0190a3
,
[]
int
{
3
}
return
fileDescriptor_7576a0a5bf0190a3
,
[]
int
{
3
}
}
}
func
(
m
*
IBTPs
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
IBTPs
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
m
.
Unmarshal
(
b
)
return
m
.
Unmarshal
(
b
)
}
}
func
(
m
*
IBTPs
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
func
(
m
*
IBTPs
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
if
deterministic
{
if
deterministic
{
return
xxx_messageInfo_IBTPs
.
Marshal
(
b
,
m
,
deterministic
)
return
xxx_messageInfo_IBTPs
.
Marshal
(
b
,
m
,
deterministic
)
...
@@ -420,15 +388,12 @@ func (m *IBTPs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
...
@@ -420,15 +388,12 @@ func (m *IBTPs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return
b
[
:
n
],
nil
return
b
[
:
n
],
nil
}
}
}
}
func
(
m
*
IBTPs
)
XXX_Merge
(
src
proto
.
Message
)
{
func
(
m
*
IBTPs
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_IBTPs
.
Merge
(
m
,
src
)
xxx_messageInfo_IBTPs
.
Merge
(
m
,
src
)
}
}
func
(
m
*
IBTPs
)
XXX_Size
()
int
{
func
(
m
*
IBTPs
)
XXX_Size
()
int
{
return
m
.
Size
()
return
m
.
Size
()
}
}
func
(
m
*
IBTPs
)
XXX_DiscardUnknown
()
{
func
(
m
*
IBTPs
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_IBTPs
.
DiscardUnknown
(
m
)
xxx_messageInfo_IBTPs
.
DiscardUnknown
(
m
)
}
}
...
@@ -442,6 +407,50 @@ func (m *IBTPs) GetIbtps() []*IBTP {
...
@@ -442,6 +407,50 @@ func (m *IBTPs) GetIbtps() []*IBTP {
return
nil
return
nil
}
}
type
Result
struct
{
Data
[][]
byte
`protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
}
func
(
m
*
Result
)
Reset
()
{
*
m
=
Result
{}
}
func
(
m
*
Result
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
Result
)
ProtoMessage
()
{}
func
(
*
Result
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_7576a0a5bf0190a3
,
[]
int
{
4
}
}
func
(
m
*
Result
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
m
.
Unmarshal
(
b
)
}
func
(
m
*
Result
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
if
deterministic
{
return
xxx_messageInfo_Result
.
Marshal
(
b
,
m
,
deterministic
)
}
else
{
b
=
b
[
:
cap
(
b
)]
n
,
err
:=
m
.
MarshalToSizedBuffer
(
b
)
if
err
!=
nil
{
return
nil
,
err
}
return
b
[
:
n
],
nil
}
}
func
(
m
*
Result
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Result
.
Merge
(
m
,
src
)
}
func
(
m
*
Result
)
XXX_Size
()
int
{
return
m
.
Size
()
}
func
(
m
*
Result
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_Result
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_Result
proto
.
InternalMessageInfo
func
(
m
*
Result
)
GetData
()
[][]
byte
{
if
m
!=
nil
{
return
m
.
Data
}
return
nil
}
func
init
()
{
func
init
()
{
proto
.
RegisterEnum
(
"pb.IBTP_Type"
,
IBTP_Type_name
,
IBTP_Type_value
)
proto
.
RegisterEnum
(
"pb.IBTP_Type"
,
IBTP_Type_name
,
IBTP_Type_value
)
proto
.
RegisterEnum
(
"pb.IBTP_Category"
,
IBTP_Category_name
,
IBTP_Category_value
)
proto
.
RegisterEnum
(
"pb.IBTP_Category"
,
IBTP_Category_name
,
IBTP_Category_value
)
...
@@ -449,47 +458,49 @@ func init() {
...
@@ -449,47 +458,49 @@ func init() {
proto
.
RegisterType
((
*
Payload
)(
nil
),
"pb.payload"
)
proto
.
RegisterType
((
*
Payload
)(
nil
),
"pb.payload"
)
proto
.
RegisterType
((
*
Content
)(
nil
),
"pb.content"
)
proto
.
RegisterType
((
*
Content
)(
nil
),
"pb.content"
)
proto
.
RegisterType
((
*
IBTPs
)(
nil
),
"pb.IBTPs"
)
proto
.
RegisterType
((
*
IBTPs
)(
nil
),
"pb.IBTPs"
)
proto
.
RegisterType
((
*
Result
)(
nil
),
"pb.result"
)
}
}
func
init
()
{
proto
.
RegisterFile
(
"ibtp.proto"
,
fileDescriptor_7576a0a5bf0190a3
)
}
func
init
()
{
proto
.
RegisterFile
(
"ibtp.proto"
,
fileDescriptor_7576a0a5bf0190a3
)
}
var
fileDescriptor_7576a0a5bf0190a3
=
[]
byte
{
var
fileDescriptor_7576a0a5bf0190a3
=
[]
byte
{
// 551 bytes of a gzipped FileDescriptorProto
// 568 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x54
,
0x53
,
0xcd
,
0x6e
,
0xd3
,
0x4c
,
0x1f
,
0x8b
,
0x08
,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x5e
,
0x03
,
0x00
,
0x00
,
}
}
func
(
m
*
IBTP
)
Marshal
()
(
dAtA
[]
byte
,
err
error
)
{
func
(
m
*
IBTP
)
Marshal
()
(
dAtA
[]
byte
,
err
error
)
{
...
@@ -746,6 +757,38 @@ func (m *IBTPs) MarshalToSizedBuffer(dAtA []byte) (int, error) {
...
@@ -746,6 +757,38 @@ func (m *IBTPs) MarshalToSizedBuffer(dAtA []byte) (int, error) {
return
len
(
dAtA
)
-
i
,
nil
return
len
(
dAtA
)
-
i
,
nil
}
}
func
(
m
*
Result
)
Marshal
()
(
dAtA
[]
byte
,
err
error
)
{
size
:=
m
.
Size
()
dAtA
=
make
([]
byte
,
size
)
n
,
err
:=
m
.
MarshalToSizedBuffer
(
dAtA
[
:
size
])
if
err
!=
nil
{
return
nil
,
err
}
return
dAtA
[
:
n
],
nil
}
func
(
m
*
Result
)
MarshalTo
(
dAtA
[]
byte
)
(
int
,
error
)
{
size
:=
m
.
Size
()
return
m
.
MarshalToSizedBuffer
(
dAtA
[
:
size
])
}
func
(
m
*
Result
)
MarshalToSizedBuffer
(
dAtA
[]
byte
)
(
int
,
error
)
{
i
:=
len
(
dAtA
)
_
=
i
var
l
int
_
=
l
if
len
(
m
.
Data
)
>
0
{
for
iNdEx
:=
len
(
m
.
Data
)
-
1
;
iNdEx
>=
0
;
iNdEx
--
{
i
-=
len
(
m
.
Data
[
iNdEx
])
copy
(
dAtA
[
i
:
],
m
.
Data
[
iNdEx
])
i
=
encodeVarintIbtp
(
dAtA
,
i
,
uint64
(
len
(
m
.
Data
[
iNdEx
])))
i
--
dAtA
[
i
]
=
0xa
}
}
return
len
(
dAtA
)
-
i
,
nil
}
func
encodeVarintIbtp
(
dAtA
[]
byte
,
offset
int
,
v
uint64
)
int
{
func
encodeVarintIbtp
(
dAtA
[]
byte
,
offset
int
,
v
uint64
)
int
{
offset
-=
sovIbtp
(
v
)
offset
-=
sovIbtp
(
v
)
base
:=
offset
base
:=
offset
...
@@ -757,7 +800,6 @@ func encodeVarintIbtp(dAtA []byte, offset int, v uint64) int {
...
@@ -757,7 +800,6 @@ func encodeVarintIbtp(dAtA []byte, offset int, v uint64) int {
dAtA
[
offset
]
=
uint8
(
v
)
dAtA
[
offset
]
=
uint8
(
v
)
return
base
return
base
}
}
func
(
m
*
IBTP
)
Size
()
(
n
int
)
{
func
(
m
*
IBTP
)
Size
()
(
n
int
)
{
if
m
==
nil
{
if
m
==
nil
{
return
0
return
0
...
@@ -882,14 +924,27 @@ func (m *IBTPs) Size() (n int) {
...
@@ -882,14 +924,27 @@ func (m *IBTPs) Size() (n int) {
return
n
return
n
}
}
func
(
m
*
Result
)
Size
()
(
n
int
)
{
if
m
==
nil
{
return
0
}
var
l
int
_
=
l
if
len
(
m
.
Data
)
>
0
{
for
_
,
b
:=
range
m
.
Data
{
l
=
len
(
b
)
n
+=
1
+
l
+
sovIbtp
(
uint64
(
l
))
}
}
return
n
}
func
sovIbtp
(
x
uint64
)
(
n
int
)
{
func
sovIbtp
(
x
uint64
)
(
n
int
)
{
return
(
math_bits
.
Len64
(
x
|
1
)
+
6
)
/
7
return
(
math_bits
.
Len64
(
x
|
1
)
+
6
)
/
7
}
}
func
sozIbtp
(
x
uint64
)
(
n
int
)
{
func
sozIbtp
(
x
uint64
)
(
n
int
)
{
return
sovIbtp
(
uint64
((
x
<<
1
)
^
uint64
((
int64
(
x
)
>>
63
))))
return
sovIbtp
(
uint64
((
x
<<
1
)
^
uint64
((
int64
(
x
)
>>
63
))))
}
}
func
(
m
*
IBTP
)
Unmarshal
(
dAtA
[]
byte
)
error
{
func
(
m
*
IBTP
)
Unmarshal
(
dAtA
[]
byte
)
error
{
l
:=
len
(
dAtA
)
l
:=
len
(
dAtA
)
iNdEx
:=
0
iNdEx
:=
0
...
@@ -1231,7 +1286,6 @@ func (m *IBTP) Unmarshal(dAtA []byte) error {
...
@@ -1231,7 +1286,6 @@ func (m *IBTP) Unmarshal(dAtA []byte) error {
}
}
return
nil
return
nil
}
}
func
(
m
*
Payload
)
Unmarshal
(
dAtA
[]
byte
)
error
{
func
(
m
*
Payload
)
Unmarshal
(
dAtA
[]
byte
)
error
{
l
:=
len
(
dAtA
)
l
:=
len
(
dAtA
)
iNdEx
:=
0
iNdEx
:=
0
...
@@ -1336,7 +1390,6 @@ func (m *Payload) Unmarshal(dAtA []byte) error {
...
@@ -1336,7 +1390,6 @@ func (m *Payload) Unmarshal(dAtA []byte) error {
}
}
return
nil
return
nil
}
}
func
(
m
*
Content
)
Unmarshal
(
dAtA
[]
byte
)
error
{
func
(
m
*
Content
)
Unmarshal
(
dAtA
[]
byte
)
error
{
l
:=
len
(
dAtA
)
l
:=
len
(
dAtA
)
iNdEx
:=
0
iNdEx
:=
0
...
@@ -1643,7 +1696,6 @@ func (m *Content) Unmarshal(dAtA []byte) error {
...
@@ -1643,7 +1696,6 @@ func (m *Content) Unmarshal(dAtA []byte) error {
}
}
return
nil
return
nil
}
}
func
(
m
*
IBTPs
)
Unmarshal
(
dAtA
[]
byte
)
error
{
func
(
m
*
IBTPs
)
Unmarshal
(
dAtA
[]
byte
)
error
{
l
:=
len
(
dAtA
)
l
:=
len
(
dAtA
)
iNdEx
:=
0
iNdEx
:=
0
...
@@ -1728,7 +1780,88 @@ func (m *IBTPs) Unmarshal(dAtA []byte) error {
...
@@ -1728,7 +1780,88 @@ func (m *IBTPs) Unmarshal(dAtA []byte) error {
}
}
return
nil
return
nil
}
}
func
(
m
*
Result
)
Unmarshal
(
dAtA
[]
byte
)
error
{
l
:=
len
(
dAtA
)
iNdEx
:=
0
for
iNdEx
<
l
{
preIndex
:=
iNdEx
var
wire
uint64
for
shift
:=
uint
(
0
);
;
shift
+=
7
{
if
shift
>=
64
{
return
ErrIntOverflowIbtp
}
if
iNdEx
>=
l
{
return
io
.
ErrUnexpectedEOF
}
b
:=
dAtA
[
iNdEx
]
iNdEx
++
wire
|=
uint64
(
b
&
0x7F
)
<<
shift
if
b
<
0x80
{
break
}
}
fieldNum
:=
int32
(
wire
>>
3
)
wireType
:=
int
(
wire
&
0x7
)
if
wireType
==
4
{
return
fmt
.
Errorf
(
"proto: result: wiretype end group for non-group"
)
}
if
fieldNum
<=
0
{
return
fmt
.
Errorf
(
"proto: result: illegal tag %d (wire type %d)"
,
fieldNum
,
wire
)
}
switch
fieldNum
{
case
1
:
if
wireType
!=
2
{
return
fmt
.
Errorf
(
"proto: wrong wireType = %d for field Data"
,
wireType
)
}
var
byteLen
int
for
shift
:=
uint
(
0
);
;
shift
+=
7
{
if
shift
>=
64
{
return
ErrIntOverflowIbtp
}
if
iNdEx
>=
l
{
return
io
.
ErrUnexpectedEOF
}
b
:=
dAtA
[
iNdEx
]
iNdEx
++
byteLen
|=
int
(
b
&
0x7F
)
<<
shift
if
b
<
0x80
{
break
}
}
if
byteLen
<
0
{
return
ErrInvalidLengthIbtp
}
postIndex
:=
iNdEx
+
byteLen
if
postIndex
<
0
{
return
ErrInvalidLengthIbtp
}
if
postIndex
>
l
{
return
io
.
ErrUnexpectedEOF
}
m
.
Data
=
append
(
m
.
Data
,
make
([]
byte
,
postIndex
-
iNdEx
))
copy
(
m
.
Data
[
len
(
m
.
Data
)
-
1
],
dAtA
[
iNdEx
:
postIndex
])
iNdEx
=
postIndex
default
:
iNdEx
=
preIndex
skippy
,
err
:=
skipIbtp
(
dAtA
[
iNdEx
:
])
if
err
!=
nil
{
return
err
}
if
(
skippy
<
0
)
||
(
iNdEx
+
skippy
)
<
0
{
return
ErrInvalidLengthIbtp
}
if
(
iNdEx
+
skippy
)
>
l
{
return
io
.
ErrUnexpectedEOF
}
iNdEx
+=
skippy
}
}
if
iNdEx
>
l
{
return
io
.
ErrUnexpectedEOF
}
return
nil
}
func
skipIbtp
(
dAtA
[]
byte
)
(
n
int
,
err
error
)
{
func
skipIbtp
(
dAtA
[]
byte
)
(
n
int
,
err
error
)
{
l
:=
len
(
dAtA
)
l
:=
len
(
dAtA
)
iNdEx
:=
0
iNdEx
:=
0
...
...
model/pb/ibtp.proto
View file @
71978d8d
...
@@ -61,3 +61,7 @@ message content {
...
@@ -61,3 +61,7 @@ message content {
message
IBTPs
{
message
IBTPs
{
repeated
IBTP
ibtps
=
1
;
repeated
IBTP
ibtps
=
1
;
}
}
message
result
{
repeated
bytes
data
=
1
;
}
model/pb/ibtpx.pb.go
View file @
71978d8d
...
@@ -5,18 +5,15 @@ package pb
...
@@ -5,18 +5,15 @@ package pb
import
(
import
(
fmt
"fmt"
fmt
"fmt"
proto
"github.com/gogo/protobuf/proto"
io
"io"
io
"io"
math
"math"
math
"math"
math_bits
"math/bits"
math_bits
"math/bits"
proto
"github.com/gogo/protobuf/proto"
)
)
// Reference imports to suppress errors if they are not otherwise used.
// Reference imports to suppress errors if they are not otherwise used.
var
_
=
proto
.
Marshal
var
_
=
proto
.
Marshal
var
_
=
fmt
.
Errorf
var
_
=
fmt
.
Errorf
var
_
=
math
.
Inf
var
_
=
math
.
Inf
// This is a compile-time assertion to ensure that this generated file
// This is a compile-time assertion to ensure that this generated file
...
@@ -38,19 +35,14 @@ type IBTPX struct {
...
@@ -38,19 +35,14 @@ type IBTPX struct {
}
}
func
(
m
*
IBTPX
)
Reset
()
{
*
m
=
IBTPX
{}
}
func
(
m
*
IBTPX
)
Reset
()
{
*
m
=
IBTPX
{}
}
func
(
m
*
IBTPX
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
IBTPX
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
IBTPX
)
ProtoMessage
()
{}
func
(
*
IBTPX
)
ProtoMessage
()
{}
func
(
*
IBTPX
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
IBTPX
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_8402d80e061d514a
,
[]
int
{
0
}
return
fileDescriptor_8402d80e061d514a
,
[]
int
{
0
}
}
}
func
(
m
*
IBTPX
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
IBTPX
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
m
.
Unmarshal
(
b
)
return
m
.
Unmarshal
(
b
)
}
}
func
(
m
*
IBTPX
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
func
(
m
*
IBTPX
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
if
deterministic
{
if
deterministic
{
return
xxx_messageInfo_IBTPX
.
Marshal
(
b
,
m
,
deterministic
)
return
xxx_messageInfo_IBTPX
.
Marshal
(
b
,
m
,
deterministic
)
...
@@ -63,15 +55,12 @@ func (m *IBTPX) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
...
@@ -63,15 +55,12 @@ func (m *IBTPX) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return
b
[
:
n
],
nil
return
b
[
:
n
],
nil
}
}
}
}
func
(
m
*
IBTPX
)
XXX_Merge
(
src
proto
.
Message
)
{
func
(
m
*
IBTPX
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_IBTPX
.
Merge
(
m
,
src
)
xxx_messageInfo_IBTPX
.
Merge
(
m
,
src
)
}
}
func
(
m
*
IBTPX
)
XXX_Size
()
int
{
func
(
m
*
IBTPX
)
XXX_Size
()
int
{
return
m
.
Size
()
return
m
.
Size
()
}
}
func
(
m
*
IBTPX
)
XXX_DiscardUnknown
()
{
func
(
m
*
IBTPX
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_IBTPX
.
DiscardUnknown
(
m
)
xxx_messageInfo_IBTPX
.
DiscardUnknown
(
m
)
}
}
...
@@ -244,7 +233,6 @@ func encodeVarintIbtpx(dAtA []byte, offset int, v uint64) int {
...
@@ -244,7 +233,6 @@ func encodeVarintIbtpx(dAtA []byte, offset int, v uint64) int {
dAtA
[
offset
]
=
uint8
(
v
)
dAtA
[
offset
]
=
uint8
(
v
)
return
base
return
base
}
}
func
(
m
*
IBTPX
)
Size
()
(
n
int
)
{
func
(
m
*
IBTPX
)
Size
()
(
n
int
)
{
if
m
==
nil
{
if
m
==
nil
{
return
0
return
0
...
@@ -287,11 +275,9 @@ func (m *IBTPX) Size() (n int) {
...
@@ -287,11 +275,9 @@ func (m *IBTPX) Size() (n int) {
func
sovIbtpx
(
x
uint64
)
(
n
int
)
{
func
sovIbtpx
(
x
uint64
)
(
n
int
)
{
return
(
math_bits
.
Len64
(
x
|
1
)
+
6
)
/
7
return
(
math_bits
.
Len64
(
x
|
1
)
+
6
)
/
7
}
}
func
sozIbtpx
(
x
uint64
)
(
n
int
)
{
func
sozIbtpx
(
x
uint64
)
(
n
int
)
{
return
sovIbtpx
(
uint64
((
x
<<
1
)
^
uint64
((
int64
(
x
)
>>
63
))))
return
sovIbtpx
(
uint64
((
x
<<
1
)
^
uint64
((
int64
(
x
)
>>
63
))))
}
}
func
(
m
*
IBTPX
)
Unmarshal
(
dAtA
[]
byte
)
error
{
func
(
m
*
IBTPX
)
Unmarshal
(
dAtA
[]
byte
)
error
{
l
:=
len
(
dAtA
)
l
:=
len
(
dAtA
)
iNdEx
:=
0
iNdEx
:=
0
...
@@ -545,7 +531,6 @@ func (m *IBTPX) Unmarshal(dAtA []byte) error {
...
@@ -545,7 +531,6 @@ func (m *IBTPX) Unmarshal(dAtA []byte) error {
}
}
return
nil
return
nil
}
}
func
skipIbtpx
(
dAtA
[]
byte
)
(
n
int
,
err
error
)
{
func
skipIbtpx
(
dAtA
[]
byte
)
(
n
int
,
err
error
)
{
l
:=
len
(
dAtA
)
l
:=
len
(
dAtA
)
iNdEx
:=
0
iNdEx
:=
0
...
...
model/pb/message.pb.go
View file @
71978d8d
...
@@ -5,18 +5,15 @@ package pb
...
@@ -5,18 +5,15 @@ package pb
import
(
import
(
fmt
"fmt"
fmt
"fmt"
proto
"github.com/gogo/protobuf/proto"
io
"io"
io
"io"
math
"math"
math
"math"
math_bits
"math/bits"
math_bits
"math/bits"
proto
"github.com/gogo/protobuf/proto"
)
)
// Reference imports to suppress errors if they are not otherwise used.
// Reference imports to suppress errors if they are not otherwise used.
var
_
=
proto
.
Marshal
var
_
=
proto
.
Marshal
var
_
=
fmt
.
Errorf
var
_
=
fmt
.
Errorf
var
_
=
math
.
Inf
var
_
=
math
.
Inf
// This is a compile-time assertion to ensure that this generated file
// This is a compile-time assertion to ensure that this generated file
...
@@ -35,7 +32,7 @@ const (
...
@@ -35,7 +32,7 @@ const (
Message_APPCHAIN_GET
Message_Type
=
4
Message_APPCHAIN_GET
Message_Type
=
4
Message_INTERCHAIN_META_GET
Message_Type
=
5
Message_INTERCHAIN_META_GET
Message_Type
=
5
Message_RULE_DEPLOY
Message_Type
=
6
Message_RULE_DEPLOY
Message_Type
=
6
//
异步完成
//异步完成
Message_IBTP_GET
Message_Type
=
7
Message_IBTP_GET
Message_Type
=
7
Message_IBTP_SEND
Message_Type
=
8
Message_IBTP_SEND
Message_Type
=
8
Message_IBTP_RECEIPT_SEND
Message_Type
=
9
Message_IBTP_RECEIPT_SEND
Message_Type
=
9
...
@@ -88,19 +85,14 @@ type Message struct {
...
@@ -88,19 +85,14 @@ type Message struct {
}
}
func
(
m
*
Message
)
Reset
()
{
*
m
=
Message
{}
}
func
(
m
*
Message
)
Reset
()
{
*
m
=
Message
{}
}
func
(
m
*
Message
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
Message
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
Message
)
ProtoMessage
()
{}
func
(
*
Message
)
ProtoMessage
()
{}
func
(
*
Message
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
Message
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_33c57e4bae7b9afd
,
[]
int
{
0
}
return
fileDescriptor_33c57e4bae7b9afd
,
[]
int
{
0
}
}
}
func
(
m
*
Message
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
Message
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
m
.
Unmarshal
(
b
)
return
m
.
Unmarshal
(
b
)
}
}
func
(
m
*
Message
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
func
(
m
*
Message
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
if
deterministic
{
if
deterministic
{
return
xxx_messageInfo_Message
.
Marshal
(
b
,
m
,
deterministic
)
return
xxx_messageInfo_Message
.
Marshal
(
b
,
m
,
deterministic
)
...
@@ -113,15 +105,12 @@ func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
...
@@ -113,15 +105,12 @@ func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return
b
[
:
n
],
nil
return
b
[
:
n
],
nil
}
}
}
}
func
(
m
*
Message
)
XXX_Merge
(
src
proto
.
Message
)
{
func
(
m
*
Message
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Message
.
Merge
(
m
,
src
)
xxx_messageInfo_Message
.
Merge
(
m
,
src
)
}
}
func
(
m
*
Message
)
XXX_Size
()
int
{
func
(
m
*
Message
)
XXX_Size
()
int
{
return
m
.
Size
()
return
m
.
Size
()
}
}
func
(
m
*
Message
)
XXX_DiscardUnknown
()
{
func
(
m
*
Message
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_Message
.
DiscardUnknown
(
m
)
xxx_messageInfo_Message
.
DiscardUnknown
(
m
)
}
}
...
@@ -155,19 +144,14 @@ type Pack struct {
...
@@ -155,19 +144,14 @@ type Pack struct {
}
}
func
(
m
*
Pack
)
Reset
()
{
*
m
=
Pack
{}
}
func
(
m
*
Pack
)
Reset
()
{
*
m
=
Pack
{}
}
func
(
m
*
Pack
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
Pack
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
Pack
)
ProtoMessage
()
{}
func
(
*
Pack
)
ProtoMessage
()
{}
func
(
*
Pack
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
Pack
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_33c57e4bae7b9afd
,
[]
int
{
1
}
return
fileDescriptor_33c57e4bae7b9afd
,
[]
int
{
1
}
}
}
func
(
m
*
Pack
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
Pack
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
m
.
Unmarshal
(
b
)
return
m
.
Unmarshal
(
b
)
}
}
func
(
m
*
Pack
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
func
(
m
*
Pack
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
if
deterministic
{
if
deterministic
{
return
xxx_messageInfo_Pack
.
Marshal
(
b
,
m
,
deterministic
)
return
xxx_messageInfo_Pack
.
Marshal
(
b
,
m
,
deterministic
)
...
@@ -180,15 +164,12 @@ func (m *Pack) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
...
@@ -180,15 +164,12 @@ func (m *Pack) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return
b
[
:
n
],
nil
return
b
[
:
n
],
nil
}
}
}
}
func
(
m
*
Pack
)
XXX_Merge
(
src
proto
.
Message
)
{
func
(
m
*
Pack
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Pack
.
Merge
(
m
,
src
)
xxx_messageInfo_Pack
.
Merge
(
m
,
src
)
}
}
func
(
m
*
Pack
)
XXX_Size
()
int
{
func
(
m
*
Pack
)
XXX_Size
()
int
{
return
m
.
Size
()
return
m
.
Size
()
}
}
func
(
m
*
Pack
)
XXX_DiscardUnknown
()
{
func
(
m
*
Pack
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_Pack
.
DiscardUnknown
(
m
)
xxx_messageInfo_Pack
.
DiscardUnknown
(
m
)
}
}
...
@@ -215,19 +196,14 @@ type PeerInfo struct {
...
@@ -215,19 +196,14 @@ type PeerInfo struct {
}
}
func
(
m
*
PeerInfo
)
Reset
()
{
*
m
=
PeerInfo
{}
}
func
(
m
*
PeerInfo
)
Reset
()
{
*
m
=
PeerInfo
{}
}
func
(
m
*
PeerInfo
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
PeerInfo
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
PeerInfo
)
ProtoMessage
()
{}
func
(
*
PeerInfo
)
ProtoMessage
()
{}
func
(
*
PeerInfo
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
PeerInfo
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_33c57e4bae7b9afd
,
[]
int
{
2
}
return
fileDescriptor_33c57e4bae7b9afd
,
[]
int
{
2
}
}
}
func
(
m
*
PeerInfo
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
PeerInfo
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
m
.
Unmarshal
(
b
)
return
m
.
Unmarshal
(
b
)
}
}
func
(
m
*
PeerInfo
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
func
(
m
*
PeerInfo
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
if
deterministic
{
if
deterministic
{
return
xxx_messageInfo_PeerInfo
.
Marshal
(
b
,
m
,
deterministic
)
return
xxx_messageInfo_PeerInfo
.
Marshal
(
b
,
m
,
deterministic
)
...
@@ -240,15 +216,12 @@ func (m *PeerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
...
@@ -240,15 +216,12 @@ func (m *PeerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return
b
[
:
n
],
nil
return
b
[
:
n
],
nil
}
}
}
}
func
(
m
*
PeerInfo
)
XXX_Merge
(
src
proto
.
Message
)
{
func
(
m
*
PeerInfo
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_PeerInfo
.
Merge
(
m
,
src
)
xxx_messageInfo_PeerInfo
.
Merge
(
m
,
src
)
}
}
func
(
m
*
PeerInfo
)
XXX_Size
()
int
{
func
(
m
*
PeerInfo
)
XXX_Size
()
int
{
return
m
.
Size
()
return
m
.
Size
()
}
}
func
(
m
*
PeerInfo
)
XXX_DiscardUnknown
()
{
func
(
m
*
PeerInfo
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_PeerInfo
.
DiscardUnknown
(
m
)
xxx_messageInfo_PeerInfo
.
DiscardUnknown
(
m
)
}
}
...
@@ -441,7 +414,6 @@ func encodeVarintMessage(dAtA []byte, offset int, v uint64) int {
...
@@ -441,7 +414,6 @@ func encodeVarintMessage(dAtA []byte, offset int, v uint64) int {
dAtA
[
offset
]
=
uint8
(
v
)
dAtA
[
offset
]
=
uint8
(
v
)
return
base
return
base
}
}
func
(
m
*
Message
)
Size
()
(
n
int
)
{
func
(
m
*
Message
)
Size
()
(
n
int
)
{
if
m
==
nil
{
if
m
==
nil
{
return
0
return
0
...
@@ -498,11 +470,9 @@ func (m *PeerInfo) Size() (n int) {
...
@@ -498,11 +470,9 @@ func (m *PeerInfo) Size() (n int) {
func
sovMessage
(
x
uint64
)
(
n
int
)
{
func
sovMessage
(
x
uint64
)
(
n
int
)
{
return
(
math_bits
.
Len64
(
x
|
1
)
+
6
)
/
7
return
(
math_bits
.
Len64
(
x
|
1
)
+
6
)
/
7
}
}
func
sozMessage
(
x
uint64
)
(
n
int
)
{
func
sozMessage
(
x
uint64
)
(
n
int
)
{
return
sovMessage
(
uint64
((
x
<<
1
)
^
uint64
((
int64
(
x
)
>>
63
))))
return
sovMessage
(
uint64
((
x
<<
1
)
^
uint64
((
int64
(
x
)
>>
63
))))
}
}
func
(
m
*
Message
)
Unmarshal
(
dAtA
[]
byte
)
error
{
func
(
m
*
Message
)
Unmarshal
(
dAtA
[]
byte
)
error
{
l
:=
len
(
dAtA
)
l
:=
len
(
dAtA
)
iNdEx
:=
0
iNdEx
:=
0
...
@@ -640,7 +610,6 @@ func (m *Message) Unmarshal(dAtA []byte) error {
...
@@ -640,7 +610,6 @@ func (m *Message) Unmarshal(dAtA []byte) error {
}
}
return
nil
return
nil
}
}
func
(
m
*
Pack
)
Unmarshal
(
dAtA
[]
byte
)
error
{
func
(
m
*
Pack
)
Unmarshal
(
dAtA
[]
byte
)
error
{
l
:=
len
(
dAtA
)
l
:=
len
(
dAtA
)
iNdEx
:=
0
iNdEx
:=
0
...
@@ -745,7 +714,6 @@ func (m *Pack) Unmarshal(dAtA []byte) error {
...
@@ -745,7 +714,6 @@ func (m *Pack) Unmarshal(dAtA []byte) error {
}
}
return
nil
return
nil
}
}
func
(
m
*
PeerInfo
)
Unmarshal
(
dAtA
[]
byte
)
error
{
func
(
m
*
PeerInfo
)
Unmarshal
(
dAtA
[]
byte
)
error
{
l
:=
len
(
dAtA
)
l
:=
len
(
dAtA
)
iNdEx
:=
0
iNdEx
:=
0
...
@@ -860,7 +828,6 @@ func (m *PeerInfo) Unmarshal(dAtA []byte) error {
...
@@ -860,7 +828,6 @@ func (m *PeerInfo) Unmarshal(dAtA []byte) error {
}
}
return
nil
return
nil
}
}
func
skipMessage
(
dAtA
[]
byte
)
(
n
int
,
err
error
)
{
func
skipMessage
(
dAtA
[]
byte
)
(
n
int
,
err
error
)
{
l
:=
len
(
dAtA
)
l
:=
len
(
dAtA
)
iNdEx
:=
0
iNdEx
:=
0
...
...
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