26 lines
510 B
Protocol Buffer
26 lines
510 B
Protocol Buffer
syntax = "proto3";
|
|
package signaling;
|
|
option go_package = ".;localserver";
|
|
|
|
message NotifyRequest {
|
|
string from = 1;
|
|
string to = 2;
|
|
string type = 3;
|
|
bytes payload = 4;
|
|
}
|
|
|
|
message NotifyResponse {
|
|
bool success = 1;
|
|
}
|
|
|
|
message SignalingMessage {
|
|
string type = 1;
|
|
string from = 2;
|
|
string to = 3;
|
|
bytes payload = 4;
|
|
}
|
|
|
|
service SignalingService {
|
|
rpc Notify (NotifyRequest) returns (NotifyResponse);
|
|
rpc Link (stream SignalingMessage) returns (stream SignalingMessage);
|
|
} |