41 lines
953 B
Protocol Buffer
41 lines
953 B
Protocol Buffer
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 {
|
|
}
|