ceremonyclient/go-libp2p/examples/ipfs-camp-2019/07-Messaging/chat.proto
2023-08-20 23:07:43 -05:00

23 lines
383 B
Protocol Buffer

syntax = "proto2";
package main;
message Request {
enum Type {
SEND_MESSAGE = 0;
UPDATE_PEER = 1;
}
required Type type = 1;
optional SendMessage sendMessage = 2;
optional UpdatePeer updatePeer = 3;
}
message SendMessage {
required bytes data = 1;
required int64 created = 2;
required bytes id = 3;
}
message UpdatePeer {
optional bytes userHandle = 1;
}