-
Notifications
You must be signed in to change notification settings - Fork 376
/
service.proto
41 lines (29 loc) · 927 Bytes
/
service.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
syntax = "proto3";
package berty.node;
import "api/p2p/event.proto";
import "entity/contact.proto";
option go_package = "github.com/berty/berty/core/api/node";
service Service {
//
// Events
//
rpc EventStream(Void) returns (stream berty.p2p.Event); // yield new events in real-time
rpc EventList(Void) returns (stream berty.p2p.Event); // list old events
//
// Contacts
//
rpc ContactRequest(ContactRequestInput) returns (berty.entity.Contact);
rpc ContactAcceptRequest(berty.entity.Contact) returns (berty.entity.Contact);
rpc ContactRemove(berty.entity.Contact) returns (berty.entity.Contact);
rpc ContactUpdate(berty.entity.Contact) returns (berty.entity.Contact);
rpc ContactList(Void) returns (stream berty.entity.Contact);
//
// Conversations
//
// TODO...
}
message ContactRequestInput {
berty.entity.Contact contact = 1;
string intro_message = 2;
}
message Void {}