WhisperCom/proto/RouterMessage.proto

24 lines
387 B
Protocol Buffer
Raw Normal View History

syntax = "proto3";
import "google/protobuf/any.proto";
import "Message.proto";
package WhisperCom.Protobuf;
enum RouterMessageType
{
UNKNOWN = 0;
JOIN = 1;
LEAVE = 2;
DATA = 3;
KEEPALIVE = 4;
SUBSCRIBE = 5;
UNSUBSCRIBE = 6;
UNSUBSCRIBE_ALL = 7;
}
message RouterMessage {
RouterMessageType type = 1;
Message msg = 2;
string topic = 3;
}