rework multi-node routing, cleaner design for reconnection
This commit is contained in:
+27
-8
@@ -24,20 +24,39 @@ message NodeStats {
|
||||
uint32 num_tracks_out = 6;
|
||||
}
|
||||
|
||||
// message for a node through the router
|
||||
message RouterMessage {
|
||||
// message to RTC nodes
|
||||
message RTCNodeMessage {
|
||||
string participant_key = 1;
|
||||
oneof message {
|
||||
StartSession start_session = 1;
|
||||
SignalRequest request = 2;
|
||||
SignalResponse response = 3;
|
||||
EndSession end_session = 4;
|
||||
StartSession start_session = 2;
|
||||
SignalRequest request = 3;
|
||||
}
|
||||
string participant_id = 5;
|
||||
}
|
||||
|
||||
// message to Signal nodes
|
||||
message SignalNodeMessage {
|
||||
string connection_id = 1;
|
||||
oneof message {
|
||||
SignalResponse response = 2;
|
||||
EndSession end_session = 3;
|
||||
}
|
||||
}
|
||||
|
||||
//message RouterMessage {
|
||||
// oneof message {
|
||||
// StartSession start_session = 1;
|
||||
// SignalRequest request = 2;
|
||||
// SignalResponse response = 3;
|
||||
// EndSession end_session = 4;
|
||||
// }
|
||||
// // empty for start session
|
||||
// string participant_key = 5;
|
||||
//}
|
||||
|
||||
message StartSession {
|
||||
string room_name = 1;
|
||||
string participant_name = 2;
|
||||
string identity = 2;
|
||||
string connection_id = 3;
|
||||
}
|
||||
|
||||
message EndSession {
|
||||
|
||||
+195
-105
@@ -185,23 +185,21 @@ func (x *NodeStats) GetNumTracksOut() uint32 {
|
||||
return 0
|
||||
}
|
||||
|
||||
// message for a node through the router
|
||||
type RouterMessage struct {
|
||||
// message to RTC nodes
|
||||
type RTCNodeMessage struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
ParticipantKey string `protobuf:"bytes,1,opt,name=participant_key,json=participantKey,proto3" json:"participant_key,omitempty"`
|
||||
// Types that are assignable to Message:
|
||||
// *RouterMessage_StartSession
|
||||
// *RouterMessage_Request
|
||||
// *RouterMessage_Response
|
||||
// *RouterMessage_EndSession
|
||||
Message isRouterMessage_Message `protobuf_oneof:"message"`
|
||||
ParticipantId string `protobuf:"bytes,5,opt,name=participant_id,json=participantId,proto3" json:"participant_id,omitempty"`
|
||||
// *RTCNodeMessage_StartSession
|
||||
// *RTCNodeMessage_Request
|
||||
Message isRTCNodeMessage_Message `protobuf_oneof:"message"`
|
||||
}
|
||||
|
||||
func (x *RouterMessage) Reset() {
|
||||
*x = RouterMessage{}
|
||||
func (x *RTCNodeMessage) Reset() {
|
||||
*x = RTCNodeMessage{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_internal_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@@ -209,13 +207,13 @@ func (x *RouterMessage) Reset() {
|
||||
}
|
||||
}
|
||||
|
||||
func (x *RouterMessage) String() string {
|
||||
func (x *RTCNodeMessage) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*RouterMessage) ProtoMessage() {}
|
||||
func (*RTCNodeMessage) ProtoMessage() {}
|
||||
|
||||
func (x *RouterMessage) ProtoReflect() protoreflect.Message {
|
||||
func (x *RTCNodeMessage) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_internal_proto_msgTypes[2]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@@ -227,94 +225,158 @@ func (x *RouterMessage) ProtoReflect() protoreflect.Message {
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use RouterMessage.ProtoReflect.Descriptor instead.
|
||||
func (*RouterMessage) Descriptor() ([]byte, []int) {
|
||||
// Deprecated: Use RTCNodeMessage.ProtoReflect.Descriptor instead.
|
||||
func (*RTCNodeMessage) Descriptor() ([]byte, []int) {
|
||||
return file_internal_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (m *RouterMessage) GetMessage() isRouterMessage_Message {
|
||||
func (x *RTCNodeMessage) GetParticipantKey() string {
|
||||
if x != nil {
|
||||
return x.ParticipantKey
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *RTCNodeMessage) GetMessage() isRTCNodeMessage_Message {
|
||||
if m != nil {
|
||||
return m.Message
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *RouterMessage) GetStartSession() *StartSession {
|
||||
if x, ok := x.GetMessage().(*RouterMessage_StartSession); ok {
|
||||
func (x *RTCNodeMessage) GetStartSession() *StartSession {
|
||||
if x, ok := x.GetMessage().(*RTCNodeMessage_StartSession); ok {
|
||||
return x.StartSession
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *RouterMessage) GetRequest() *SignalRequest {
|
||||
if x, ok := x.GetMessage().(*RouterMessage_Request); ok {
|
||||
func (x *RTCNodeMessage) GetRequest() *SignalRequest {
|
||||
if x, ok := x.GetMessage().(*RTCNodeMessage_Request); ok {
|
||||
return x.Request
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *RouterMessage) GetResponse() *SignalResponse {
|
||||
if x, ok := x.GetMessage().(*RouterMessage_Response); ok {
|
||||
type isRTCNodeMessage_Message interface {
|
||||
isRTCNodeMessage_Message()
|
||||
}
|
||||
|
||||
type RTCNodeMessage_StartSession struct {
|
||||
StartSession *StartSession `protobuf:"bytes,2,opt,name=start_session,json=startSession,proto3,oneof"`
|
||||
}
|
||||
|
||||
type RTCNodeMessage_Request struct {
|
||||
Request *SignalRequest `protobuf:"bytes,3,opt,name=request,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*RTCNodeMessage_StartSession) isRTCNodeMessage_Message() {}
|
||||
|
||||
func (*RTCNodeMessage_Request) isRTCNodeMessage_Message() {}
|
||||
|
||||
// message to Signal nodes
|
||||
type SignalNodeMessage struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
ConnectionId string `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
|
||||
// Types that are assignable to Message:
|
||||
// *SignalNodeMessage_Response
|
||||
// *SignalNodeMessage_EndSession
|
||||
Message isSignalNodeMessage_Message `protobuf_oneof:"message"`
|
||||
}
|
||||
|
||||
func (x *SignalNodeMessage) Reset() {
|
||||
*x = SignalNodeMessage{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_internal_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *SignalNodeMessage) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*SignalNodeMessage) ProtoMessage() {}
|
||||
|
||||
func (x *SignalNodeMessage) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_internal_proto_msgTypes[3]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use SignalNodeMessage.ProtoReflect.Descriptor instead.
|
||||
func (*SignalNodeMessage) Descriptor() ([]byte, []int) {
|
||||
return file_internal_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *SignalNodeMessage) GetConnectionId() string {
|
||||
if x != nil {
|
||||
return x.ConnectionId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *SignalNodeMessage) GetMessage() isSignalNodeMessage_Message {
|
||||
if m != nil {
|
||||
return m.Message
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SignalNodeMessage) GetResponse() *SignalResponse {
|
||||
if x, ok := x.GetMessage().(*SignalNodeMessage_Response); ok {
|
||||
return x.Response
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *RouterMessage) GetEndSession() *EndSession {
|
||||
if x, ok := x.GetMessage().(*RouterMessage_EndSession); ok {
|
||||
func (x *SignalNodeMessage) GetEndSession() *EndSession {
|
||||
if x, ok := x.GetMessage().(*SignalNodeMessage_EndSession); ok {
|
||||
return x.EndSession
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *RouterMessage) GetParticipantId() string {
|
||||
if x != nil {
|
||||
return x.ParticipantId
|
||||
}
|
||||
return ""
|
||||
type isSignalNodeMessage_Message interface {
|
||||
isSignalNodeMessage_Message()
|
||||
}
|
||||
|
||||
type isRouterMessage_Message interface {
|
||||
isRouterMessage_Message()
|
||||
type SignalNodeMessage_Response struct {
|
||||
Response *SignalResponse `protobuf:"bytes,2,opt,name=response,proto3,oneof"`
|
||||
}
|
||||
|
||||
type RouterMessage_StartSession struct {
|
||||
StartSession *StartSession `protobuf:"bytes,1,opt,name=start_session,json=startSession,proto3,oneof"`
|
||||
type SignalNodeMessage_EndSession struct {
|
||||
EndSession *EndSession `protobuf:"bytes,3,opt,name=end_session,json=endSession,proto3,oneof"`
|
||||
}
|
||||
|
||||
type RouterMessage_Request struct {
|
||||
Request *SignalRequest `protobuf:"bytes,2,opt,name=request,proto3,oneof"`
|
||||
}
|
||||
func (*SignalNodeMessage_Response) isSignalNodeMessage_Message() {}
|
||||
|
||||
type RouterMessage_Response struct {
|
||||
Response *SignalResponse `protobuf:"bytes,3,opt,name=response,proto3,oneof"`
|
||||
}
|
||||
|
||||
type RouterMessage_EndSession struct {
|
||||
EndSession *EndSession `protobuf:"bytes,4,opt,name=end_session,json=endSession,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*RouterMessage_StartSession) isRouterMessage_Message() {}
|
||||
|
||||
func (*RouterMessage_Request) isRouterMessage_Message() {}
|
||||
|
||||
func (*RouterMessage_Response) isRouterMessage_Message() {}
|
||||
|
||||
func (*RouterMessage_EndSession) isRouterMessage_Message() {}
|
||||
func (*SignalNodeMessage_EndSession) isSignalNodeMessage_Message() {}
|
||||
|
||||
type StartSession struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
RoomName string `protobuf:"bytes,1,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"`
|
||||
ParticipantName string `protobuf:"bytes,2,opt,name=participant_name,json=participantName,proto3" json:"participant_name,omitempty"`
|
||||
RoomName string `protobuf:"bytes,1,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"`
|
||||
Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"`
|
||||
ConnectionId string `protobuf:"bytes,3,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
|
||||
}
|
||||
|
||||
func (x *StartSession) Reset() {
|
||||
*x = StartSession{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_internal_proto_msgTypes[3]
|
||||
mi := &file_internal_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -327,7 +389,7 @@ func (x *StartSession) String() string {
|
||||
func (*StartSession) ProtoMessage() {}
|
||||
|
||||
func (x *StartSession) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_internal_proto_msgTypes[3]
|
||||
mi := &file_internal_proto_msgTypes[4]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -340,7 +402,7 @@ func (x *StartSession) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use StartSession.ProtoReflect.Descriptor instead.
|
||||
func (*StartSession) Descriptor() ([]byte, []int) {
|
||||
return file_internal_proto_rawDescGZIP(), []int{3}
|
||||
return file_internal_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *StartSession) GetRoomName() string {
|
||||
@@ -350,9 +412,16 @@ func (x *StartSession) GetRoomName() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *StartSession) GetParticipantName() string {
|
||||
func (x *StartSession) GetIdentity() string {
|
||||
if x != nil {
|
||||
return x.ParticipantName
|
||||
return x.Identity
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *StartSession) GetConnectionId() string {
|
||||
if x != nil {
|
||||
return x.ConnectionId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
@@ -366,7 +435,7 @@ type EndSession struct {
|
||||
func (x *EndSession) Reset() {
|
||||
*x = EndSession{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_internal_proto_msgTypes[4]
|
||||
mi := &file_internal_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -379,7 +448,7 @@ func (x *EndSession) String() string {
|
||||
func (*EndSession) ProtoMessage() {}
|
||||
|
||||
func (x *EndSession) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_internal_proto_msgTypes[4]
|
||||
mi := &file_internal_proto_msgTypes[5]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -392,7 +461,7 @@ func (x *EndSession) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use EndSession.ProtoReflect.Descriptor instead.
|
||||
func (*EndSession) Descriptor() ([]byte, []int) {
|
||||
return file_internal_proto_rawDescGZIP(), []int{4}
|
||||
return file_internal_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
var File_internal_proto protoreflect.FileDescriptor
|
||||
@@ -420,35 +489,41 @@ var file_internal_proto_rawDesc = []byte{
|
||||
0x28, 0x0d, 0x52, 0x0b, 0x6e, 0x75, 0x6d, 0x54, 0x72, 0x61, 0x63, 0x6b, 0x73, 0x49, 0x6e, 0x12,
|
||||
0x24, 0x0a, 0x0e, 0x6e, 0x75, 0x6d, 0x5f, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x73, 0x5f, 0x6f, 0x75,
|
||||
0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x6e, 0x75, 0x6d, 0x54, 0x72, 0x61, 0x63,
|
||||
0x6b, 0x73, 0x4f, 0x75, 0x74, 0x22, 0xa2, 0x02, 0x0a, 0x0d, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x72,
|
||||
0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3c, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x72, 0x74,
|
||||
0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15,
|
||||
0x2e, 0x6c, 0x69, 0x76, 0x65, 0x6b, 0x69, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x53, 0x65,
|
||||
0x73, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x72, 0x74, 0x53, 0x65,
|
||||
0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6c, 0x69, 0x76, 0x65, 0x6b, 0x69, 0x74,
|
||||
0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00,
|
||||
0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x08, 0x72, 0x65, 0x73,
|
||||
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6c, 0x69,
|
||||
0x6b, 0x73, 0x4f, 0x75, 0x74, 0x22, 0xb6, 0x01, 0x0a, 0x0e, 0x52, 0x54, 0x43, 0x4e, 0x6f, 0x64,
|
||||
0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x61, 0x72, 0x74,
|
||||
0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x0e, 0x70, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x4b, 0x65,
|
||||
0x79, 0x12, 0x3c, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69,
|
||||
0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6c, 0x69, 0x76, 0x65, 0x6b,
|
||||
0x69, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x48,
|
||||
0x00, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x72, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12,
|
||||
0x32, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
|
||||
0x32, 0x16, 0x2e, 0x6c, 0x69, 0x76, 0x65, 0x6b, 0x69, 0x74, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61,
|
||||
0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75,
|
||||
0x65, 0x73, 0x74, 0x42, 0x09, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xb2,
|
||||
0x01, 0x0a, 0x11, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x4e, 0x6f, 0x64, 0x65, 0x4d, 0x65, 0x73,
|
||||
0x73, 0x61, 0x67, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69,
|
||||
0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x6e,
|
||||
0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x35, 0x0a, 0x08, 0x72, 0x65, 0x73,
|
||||
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6c, 0x69,
|
||||
0x76, 0x65, 0x6b, 0x69, 0x74, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70,
|
||||
0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
||||
0x12, 0x36, 0x0a, 0x0b, 0x65, 0x6e, 0x64, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18,
|
||||
0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6c, 0x69, 0x76, 0x65, 0x6b, 0x69, 0x74, 0x2e,
|
||||
0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6c, 0x69, 0x76, 0x65, 0x6b, 0x69, 0x74, 0x2e,
|
||||
0x45, 0x6e, 0x64, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0a, 0x65, 0x6e,
|
||||
0x64, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x61, 0x72, 0x74,
|
||||
0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
|
||||
0x52, 0x0d, 0x70, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x42,
|
||||
0x09, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x56, 0x0a, 0x0c, 0x53, 0x74,
|
||||
0x61, 0x72, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f,
|
||||
0x6f, 0x6d, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72,
|
||||
0x6f, 0x6f, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x61, 0x72, 0x74, 0x69,
|
||||
0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x0f, 0x70, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x4e, 0x61,
|
||||
0x6d, 0x65, 0x22, 0x0c, 0x0a, 0x0a, 0x45, 0x6e, 0x64, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,
|
||||
0x42, 0x31, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c,
|
||||
0x69, 0x76, 0x65, 0x6b, 0x69, 0x74, 0x2f, 0x6c, 0x69, 0x76, 0x65, 0x6b, 0x69, 0x74, 0x2d, 0x73,
|
||||
0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x76, 0x65,
|
||||
0x6b, 0x69, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x64, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x09, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73,
|
||||
0x61, 0x67, 0x65, 0x22, 0x6c, 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x72, 0x74, 0x53, 0x65, 0x73, 0x73,
|
||||
0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f, 0x6f, 0x6d, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x6f, 0x6f, 0x6d, 0x4e, 0x61, 0x6d, 0x65,
|
||||
0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01,
|
||||
0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x23, 0x0a, 0x0d,
|
||||
0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20,
|
||||
0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49,
|
||||
0x64, 0x22, 0x0c, 0x0a, 0x0a, 0x45, 0x6e, 0x64, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42,
|
||||
0x31, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x69,
|
||||
0x76, 0x65, 0x6b, 0x69, 0x74, 0x2f, 0x6c, 0x69, 0x76, 0x65, 0x6b, 0x69, 0x74, 0x2d, 0x73, 0x65,
|
||||
0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x76, 0x65, 0x6b,
|
||||
0x69, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@@ -463,22 +538,23 @@ func file_internal_proto_rawDescGZIP() []byte {
|
||||
return file_internal_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_internal_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
||||
var file_internal_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
||||
var file_internal_proto_goTypes = []interface{}{
|
||||
(*Node)(nil), // 0: livekit.Node
|
||||
(*NodeStats)(nil), // 1: livekit.NodeStats
|
||||
(*RouterMessage)(nil), // 2: livekit.RouterMessage
|
||||
(*StartSession)(nil), // 3: livekit.StartSession
|
||||
(*EndSession)(nil), // 4: livekit.EndSession
|
||||
(*SignalRequest)(nil), // 5: livekit.SignalRequest
|
||||
(*SignalResponse)(nil), // 6: livekit.SignalResponse
|
||||
(*Node)(nil), // 0: livekit.Node
|
||||
(*NodeStats)(nil), // 1: livekit.NodeStats
|
||||
(*RTCNodeMessage)(nil), // 2: livekit.RTCNodeMessage
|
||||
(*SignalNodeMessage)(nil), // 3: livekit.SignalNodeMessage
|
||||
(*StartSession)(nil), // 4: livekit.StartSession
|
||||
(*EndSession)(nil), // 5: livekit.EndSession
|
||||
(*SignalRequest)(nil), // 6: livekit.SignalRequest
|
||||
(*SignalResponse)(nil), // 7: livekit.SignalResponse
|
||||
}
|
||||
var file_internal_proto_depIdxs = []int32{
|
||||
1, // 0: livekit.Node.stats:type_name -> livekit.NodeStats
|
||||
3, // 1: livekit.RouterMessage.start_session:type_name -> livekit.StartSession
|
||||
5, // 2: livekit.RouterMessage.request:type_name -> livekit.SignalRequest
|
||||
6, // 3: livekit.RouterMessage.response:type_name -> livekit.SignalResponse
|
||||
4, // 4: livekit.RouterMessage.end_session:type_name -> livekit.EndSession
|
||||
4, // 1: livekit.RTCNodeMessage.start_session:type_name -> livekit.StartSession
|
||||
6, // 2: livekit.RTCNodeMessage.request:type_name -> livekit.SignalRequest
|
||||
7, // 3: livekit.SignalNodeMessage.response:type_name -> livekit.SignalResponse
|
||||
5, // 4: livekit.SignalNodeMessage.end_session:type_name -> livekit.EndSession
|
||||
5, // [5:5] is the sub-list for method output_type
|
||||
5, // [5:5] is the sub-list for method input_type
|
||||
5, // [5:5] is the sub-list for extension type_name
|
||||
@@ -518,7 +594,7 @@ func file_internal_proto_init() {
|
||||
}
|
||||
}
|
||||
file_internal_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*RouterMessage); i {
|
||||
switch v := v.(*RTCNodeMessage); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@@ -530,7 +606,7 @@ func file_internal_proto_init() {
|
||||
}
|
||||
}
|
||||
file_internal_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*StartSession); i {
|
||||
switch v := v.(*SignalNodeMessage); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@@ -542,6 +618,18 @@ func file_internal_proto_init() {
|
||||
}
|
||||
}
|
||||
file_internal_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*StartSession); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_internal_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*EndSession); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -555,10 +643,12 @@ func file_internal_proto_init() {
|
||||
}
|
||||
}
|
||||
file_internal_proto_msgTypes[2].OneofWrappers = []interface{}{
|
||||
(*RouterMessage_StartSession)(nil),
|
||||
(*RouterMessage_Request)(nil),
|
||||
(*RouterMessage_Response)(nil),
|
||||
(*RouterMessage_EndSession)(nil),
|
||||
(*RTCNodeMessage_StartSession)(nil),
|
||||
(*RTCNodeMessage_Request)(nil),
|
||||
}
|
||||
file_internal_proto_msgTypes[3].OneofWrappers = []interface{}{
|
||||
(*SignalNodeMessage_Response)(nil),
|
||||
(*SignalNodeMessage_EndSession)(nil),
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
@@ -566,7 +656,7 @@ func file_internal_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_internal_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 5,
|
||||
NumMessages: 6,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user