Converted RTC back to GRPC for server push capability

This commit is contained in:
David Zhao
2020-10-29 01:02:31 -07:00
parent 71d6feedbb
commit 36dd195ca3
20 changed files with 1017 additions and 1687 deletions
+40
View File
@@ -0,0 +1,40 @@
syntax = "proto3";
package livekit;
option go_package = "github.com/livekit/livekit-server/proto/livekit";
// Room service that can be performed on any node
// they are simple HTTP req/responses
service RoomService {
// TODO: how do we secure room service?
// should be accessible to only internal servers, not external
rpc CreateRoom(CreateRoomRequest) returns (RoomInfo);
rpc GetRoom(GetRoomRequest) returns (RoomInfo);
rpc DeleteRoom(DeleteRoomRequest) returns (DeleteRoomResponse);
}
message CreateRoomRequest {
string room_id = 1;
// number of seconds the room should cleanup after being empty
uint32 empty_timeout = 2;
uint32 max_participants = 3;
}
message GetRoomRequest {
string room_id = 1;
}
message RoomInfo {
string room_id = 1;
string node_ip = 2;
uint32 node_rtc_port = 3;
int64 creation_time = 4;
string token = 5;
}
message DeleteRoomRequest {
string room_id = 1;
}
message DeleteRoomResponse {
}