ceremonyclient/go-libp2p/examples/ipfs-camp-2019/08-End/chat.proto

23 lines
383 B
Protocol Buffer
Raw Permalink Normal View History

2023-08-21 03:50:38 +00:00
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;
}