first implementation
This commit is contained in:
44
signaling/proto/signaling.proto
Normal file
44
signaling/proto/signaling.proto
Normal file
@ -0,0 +1,44 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package signaling;
|
||||
|
||||
option go_package = "git.jeffthecoder.xyz/public/chat-signaling-server/pkg/proto/signaling";
|
||||
|
||||
import "google/protobuf/empty.proto";
|
||||
|
||||
enum SDPMessageKind {
|
||||
Video = 0;
|
||||
Audio = 1;
|
||||
VideoAudio = 2;
|
||||
Data = 3;
|
||||
}
|
||||
|
||||
message SDPMessage {
|
||||
string SDP = 1;
|
||||
SDPMessageKind Kind = 2;
|
||||
string Sender = 3;
|
||||
}
|
||||
|
||||
message ICECandidate {
|
||||
string Candidate = 1;
|
||||
string Sender = 2;
|
||||
}
|
||||
|
||||
message SignalingMessage {
|
||||
string Room = 1;
|
||||
string Sender = 2;
|
||||
optional string Receiver = 3;
|
||||
oneof Message {
|
||||
google.protobuf.Empty Bootstrap = 10;
|
||||
google.protobuf.Empty DiscoverRequest = 11;
|
||||
google.protobuf.Empty DiscoverResponse = 12;
|
||||
|
||||
SDPMessage SessionOffer = 13;
|
||||
SDPMessage SessionAnswer = 14;
|
||||
ICECandidate ICECandidate = 15;
|
||||
};
|
||||
}
|
||||
|
||||
service Signaling {
|
||||
rpc Biu(stream SignalingMessage) returns (stream SignalingMessage);
|
||||
}
|
Reference in New Issue
Block a user