Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
client
Commits
523ffb9e
Commit
523ffb9e
authored
4 years ago
by
Benjamin Wenger
Browse files
Options
Downloads
Patches
Plain Diff
added error fields to responces
parent
0be9de3b
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ud/udMessages.pb.go
+30
-11
30 additions, 11 deletions
ud/udMessages.pb.go
ud/udMessages.proto
+2
-0
2 additions, 0 deletions
ud/udMessages.proto
with
32 additions
and
11 deletions
ud/udMessages.pb.go
+
30
−
11
View file @
523ffb9e
...
@@ -221,6 +221,7 @@ type SearchResponse struct {
...
@@ -221,6 +221,7 @@ type SearchResponse struct {
// ID of the session created
// ID of the session created
Contacts
[]
*
Contact
`protobuf:"bytes,1,rep,name=contacts,proto3" json:"contacts,omitempty"`
Contacts
[]
*
Contact
`protobuf:"bytes,1,rep,name=contacts,proto3" json:"contacts,omitempty"`
CommID
int64
`protobuf:"varint,2,opt,name=commID,proto3" json:"commID,omitempty"`
CommID
int64
`protobuf:"varint,2,opt,name=commID,proto3" json:"commID,omitempty"`
Error
string
`protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
}
}
func
(
x
*
SearchResponse
)
Reset
()
{
func
(
x
*
SearchResponse
)
Reset
()
{
...
@@ -269,6 +270,13 @@ func (x *SearchResponse) GetCommID() int64 {
...
@@ -269,6 +270,13 @@ func (x *SearchResponse) GetCommID() int64 {
return
0
return
0
}
}
func
(
x
*
SearchResponse
)
GetError
()
string
{
if
x
!=
nil
{
return
x
.
Error
}
return
""
}
// Message sent to UDB for looking up a user
// Message sent to UDB for looking up a user
type
LookupSend
struct
{
type
LookupSend
struct
{
state
protoimpl
.
MessageState
state
protoimpl
.
MessageState
...
@@ -333,6 +341,7 @@ type LookupResponse struct {
...
@@ -333,6 +341,7 @@ type LookupResponse struct {
PubKey
[]
byte
`protobuf:"bytes,1,opt,name=pubKey,proto3" json:"pubKey,omitempty"`
PubKey
[]
byte
`protobuf:"bytes,1,opt,name=pubKey,proto3" json:"pubKey,omitempty"`
CommID
int64
`protobuf:"varint,2,opt,name=commID,proto3" json:"commID,omitempty"`
CommID
int64
`protobuf:"varint,2,opt,name=commID,proto3" json:"commID,omitempty"`
Error
string
`protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
}
}
func
(
x
*
LookupResponse
)
Reset
()
{
func
(
x
*
LookupResponse
)
Reset
()
{
...
@@ -381,6 +390,13 @@ func (x *LookupResponse) GetCommID() int64 {
...
@@ -381,6 +390,13 @@ func (x *LookupResponse) GetCommID() int64 {
return
0
return
0
}
}
func
(
x
*
LookupResponse
)
GetError
()
string
{
if
x
!=
nil
{
return
x
.
Error
}
return
""
}
var
File_udMessages_proto
protoreflect
.
FileDescriptor
var
File_udMessages_proto
protoreflect
.
FileDescriptor
var
file_udMessages_proto_rawDesc
=
[]
byte
{
var
file_udMessages_proto_rawDesc
=
[]
byte
{
...
@@ -400,21 +416,24 @@ var file_udMessages_proto_rawDesc = []byte{
...
@@ -400,21 +416,24 @@ var file_udMessages_proto_rawDesc = []byte{
0x03
,
0x28
,
0x0b
,
0x32
,
0x0f
,
0x2e
,
0x70
,
0x61
,
0x72
,
0x73
,
0x65
,
0x2e
,
0x48
,
0x61
,
0x73
,
0x68
,
0x03
,
0x28
,
0x0b
,
0x32
,
0x0f
,
0x2e
,
0x70
,
0x61
,
0x72
,
0x73
,
0x65
,
0x2e
,
0x48
,
0x61
,
0x73
,
0x68
,
0x46
,
0x61
,
0x63
,
0x74
,
0x52
,
0x04
,
0x66
,
0x61
,
0x63
,
0x74
,
0x12
,
0x16
,
0x0a
,
0x06
,
0x63
,
0x6f
,
0x46
,
0x61
,
0x63
,
0x74
,
0x52
,
0x04
,
0x66
,
0x61
,
0x63
,
0x74
,
0x12
,
0x16
,
0x0a
,
0x06
,
0x63
,
0x6f
,
0x6d
,
0x6d
,
0x49
,
0x44
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x03
,
0x52
,
0x06
,
0x63
,
0x6f
,
0x6d
,
0x6d
,
0x6d
,
0x6d
,
0x49
,
0x44
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x03
,
0x52
,
0x06
,
0x63
,
0x6f
,
0x6d
,
0x6d
,
0x49
,
0x44
,
0x22
,
0x
54
,
0x0a
,
0x0e
,
0x53
,
0x65
,
0x61
,
0x72
,
0x63
,
0x68
,
0x52
,
0x65
,
0x73
,
0x70
,
0x49
,
0x44
,
0x22
,
0x
6a
,
0x0a
,
0x0e
,
0x53
,
0x65
,
0x61
,
0x72
,
0x63
,
0x68
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x12
,
0x2a
,
0x0a
,
0x08
,
0x63
,
0x6f
,
0x6e
,
0x74
,
0x61
,
0x63
,
0x74
,
0x73
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x12
,
0x2a
,
0x0a
,
0x08
,
0x63
,
0x6f
,
0x6e
,
0x74
,
0x61
,
0x63
,
0x74
,
0x73
,
0x18
,
0x01
,
0x20
,
0x03
,
0x28
,
0x0b
,
0x32
,
0x0e
,
0x2e
,
0x70
,
0x61
,
0x72
,
0x73
,
0x65
,
0x2e
,
0x43
,
0x18
,
0x01
,
0x20
,
0x03
,
0x28
,
0x0b
,
0x32
,
0x0e
,
0x2e
,
0x70
,
0x61
,
0x72
,
0x73
,
0x65
,
0x2e
,
0x43
,
0x6f
,
0x6e
,
0x74
,
0x61
,
0x63
,
0x74
,
0x52
,
0x08
,
0x63
,
0x6f
,
0x6e
,
0x74
,
0x61
,
0x63
,
0x74
,
0x73
,
0x6f
,
0x6e
,
0x74
,
0x61
,
0x63
,
0x74
,
0x52
,
0x08
,
0x63
,
0x6f
,
0x6e
,
0x74
,
0x61
,
0x63
,
0x74
,
0x73
,
0x12
,
0x16
,
0x0a
,
0x06
,
0x63
,
0x6f
,
0x6d
,
0x6d
,
0x49
,
0x44
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x03
,
0x12
,
0x16
,
0x0a
,
0x06
,
0x63
,
0x6f
,
0x6d
,
0x6d
,
0x49
,
0x44
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x03
,
0x52
,
0x06
,
0x63
,
0x6f
,
0x6d
,
0x6d
,
0x49
,
0x44
,
0x22
,
0x3c
,
0x0a
,
0x0a
,
0x4c
,
0x6f
,
0x6f
,
0x6b
,
0x52
,
0x06
,
0x63
,
0x6f
,
0x6d
,
0x6d
,
0x49
,
0x44
,
0x12
,
0x14
,
0x0a
,
0x05
,
0x65
,
0x72
,
0x72
,
0x6f
,
0x75
,
0x70
,
0x53
,
0x65
,
0x6e
,
0x64
,
0x12
,
0x16
,
0x0a
,
0x06
,
0x75
,
0x73
,
0x65
,
0x72
,
0x49
,
0x44
,
0x72
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x05
,
0x65
,
0x72
,
0x72
,
0x6f
,
0x72
,
0x22
,
0x3c
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x0c
,
0x52
,
0x06
,
0x75
,
0x73
,
0x65
,
0x72
,
0x49
,
0x44
,
0x12
,
0x16
,
0x0a
,
0x0a
,
0x4c
,
0x6f
,
0x6f
,
0x6b
,
0x75
,
0x70
,
0x53
,
0x65
,
0x6e
,
0x64
,
0x12
,
0x16
,
0x0a
,
0x06
,
0x0a
,
0x06
,
0x63
,
0x6f
,
0x6d
,
0x6d
,
0x49
,
0x44
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x03
,
0x52
,
0x06
,
0x75
,
0x73
,
0x65
,
0x72
,
0x49
,
0x44
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x0c
,
0x52
,
0x06
,
0x75
,
0x73
,
0x63
,
0x6f
,
0x6d
,
0x6d
,
0x49
,
0x44
,
0x22
,
0x40
,
0x0a
,
0x0e
,
0x4c
,
0x6f
,
0x6f
,
0x6b
,
0x75
,
0x70
,
0x65
,
0x72
,
0x49
,
0x44
,
0x12
,
0x16
,
0x0a
,
0x06
,
0x63
,
0x6f
,
0x6d
,
0x6d
,
0x49
,
0x44
,
0x18
,
0x02
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x12
,
0x16
,
0x0a
,
0x06
,
0x70
,
0x75
,
0x62
,
0x4b
,
0x20
,
0x01
,
0x28
,
0x03
,
0x52
,
0x06
,
0x63
,
0x6f
,
0x6d
,
0x6d
,
0x49
,
0x44
,
0x22
,
0x56
,
0x0a
,
0x0e
,
0x65
,
0x79
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x0c
,
0x52
,
0x06
,
0x70
,
0x75
,
0x62
,
0x4b
,
0x65
,
0x79
,
0x4c
,
0x6f
,
0x6f
,
0x6b
,
0x75
,
0x70
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x12
,
0x16
,
0x12
,
0x16
,
0x0a
,
0x06
,
0x63
,
0x6f
,
0x6d
,
0x6d
,
0x49
,
0x44
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x03
,
0x0a
,
0x06
,
0x70
,
0x75
,
0x62
,
0x4b
,
0x65
,
0x79
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x0c
,
0x52
,
0x06
,
0x52
,
0x06
,
0x63
,
0x6f
,
0x6d
,
0x6d
,
0x49
,
0x44
,
0x42
,
0x04
,
0x5a
,
0x02
,
0x75
,
0x64
,
0x62
,
0x06
,
0x70
,
0x75
,
0x62
,
0x4b
,
0x65
,
0x79
,
0x12
,
0x16
,
0x0a
,
0x06
,
0x63
,
0x6f
,
0x6d
,
0x6d
,
0x49
,
0x44
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x33
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x03
,
0x52
,
0x06
,
0x63
,
0x6f
,
0x6d
,
0x6d
,
0x49
,
0x44
,
0x12
,
0x14
,
0x0a
,
0x05
,
0x65
,
0x72
,
0x72
,
0x6f
,
0x72
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x05
,
0x65
,
0x72
,
0x72
,
0x6f
,
0x72
,
0x42
,
0x04
,
0x5a
,
0x02
,
0x75
,
0x64
,
0x62
,
0x06
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x33
,
}
}
var
(
var
(
...
...
This diff is collapsed.
Click to expand it.
ud/udMessages.proto
+
2
−
0
View file @
523ffb9e
...
@@ -38,6 +38,7 @@ message SearchResponse {
...
@@ -38,6 +38,7 @@ message SearchResponse {
// ID of the session created
// ID of the session created
repeated
Contact
contacts
=
1
;
repeated
Contact
contacts
=
1
;
int64
commID
=
2
;
int64
commID
=
2
;
string
error
=
3
;
}
}
// Message sent to UDB for looking up a user
// Message sent to UDB for looking up a user
...
@@ -50,4 +51,5 @@ message LookupSend {
...
@@ -50,4 +51,5 @@ message LookupSend {
message
LookupResponse
{
message
LookupResponse
{
bytes
pubKey
=
1
;
bytes
pubKey
=
1
;
int64
commID
=
2
;
int64
commID
=
2
;
string
error
=
3
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment