mirror of
https://github.com/livekit/livekit.git
synced 2026-04-26 23:55:25 +00:00
54 lines
1.0 KiB
Protocol Buffer
54 lines
1.0 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package livekit;
|
|
option go_package = "github.com/livekit/livekit-server/proto/livekit";
|
|
|
|
// internal protos, not exposed to clients
|
|
import "rtc.proto";
|
|
|
|
message Node {
|
|
string id = 1;
|
|
string ip = 2;
|
|
uint32 num_cpus = 3;
|
|
NodeStats stats = 4;
|
|
}
|
|
|
|
message NodeStats {
|
|
// when server was started
|
|
int64 started_at = 1;
|
|
// when server last reported its status
|
|
int64 updated_at = 2;
|
|
uint32 num_rooms = 3;
|
|
uint32 num_clients = 4;
|
|
uint32 num_tracks_in = 5;
|
|
uint32 num_tracks_out = 6;
|
|
}
|
|
|
|
// message to RTC nodes
|
|
message RTCNodeMessage {
|
|
string participant_key = 1;
|
|
oneof message {
|
|
StartSession start_session = 2;
|
|
SignalRequest request = 3;
|
|
}
|
|
}
|
|
|
|
// message to Signal nodes
|
|
message SignalNodeMessage {
|
|
string connection_id = 1;
|
|
oneof message {
|
|
SignalResponse response = 2;
|
|
EndSession end_session = 3;
|
|
}
|
|
}
|
|
|
|
message StartSession {
|
|
string room_name = 1;
|
|
string identity = 2;
|
|
string connection_id = 3;
|
|
// if a client is reconnecting (i.e. resume instead of restart)
|
|
bool reconnect = 4;
|
|
}
|
|
|
|
message EndSession {
|
|
} |