syntax = "proto3";

package p2p.v1;
import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto";
import "p2p/v1/resource.proto";

message BroadCastRequest {
  MessageHeader header = 1;
  bytes data = 2;
}

message BroadCastResponse {
  bool success = 1;
}

message SendDataRequest {
  MessageHeader header = 1;
  bytes data = 2;
}

message SendDataResponse {
  bool success = 1;
}

message SubscribeMsgRequest {
  MessageHeader header = 1;
  repeated P2PMsgType msg_types = 2;
}

message SubscribeMsgResponse {
  bool success = 1;
}
