Skip to content

Commit

Permalink
add roommanager service (#789)
Browse files Browse the repository at this point in the history
* add roommanager service

* merge

* merge

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
paulwe and github-actions[bot] committed Aug 13, 2024
1 parent 2c6bf54 commit ec964a6
Show file tree
Hide file tree
Showing 12 changed files with 631 additions and 299 deletions.
550 changes: 283 additions & 267 deletions livekit/livekit_internal.pb.go

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ func Proto() error {
"rpc/keepalive.proto",
"rpc/participant.proto",
"rpc/room.proto",
"rpc/roommanager.proto",
"rpc/signal.proto",
"rpc/sip.proto",
}
Expand Down
2 changes: 2 additions & 0 deletions protobufs/livekit_internal.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ option ruby_package = "LiveKit::Proto";
import "livekit_models.proto";
import "livekit_egress.proto";
import "livekit_agent_dispatch.proto";
import "livekit_room.proto";

enum NodeType {
SERVER = 0;
Expand Down Expand Up @@ -136,6 +137,7 @@ message StartSession {
ReconnectReason reconnect_reason = 17;
optional bool subscriber_allow_pause = 18;
bool disable_ice_lite = 19;
livekit.CreateRoomRequest create_room = 20;
}

// room info that should not be returned to clients
Expand Down
36 changes: 36 additions & 0 deletions protobufs/rpc/roommanager.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// Copyright 2023 LiveKit, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

syntax = "proto3";

package rpc;

option go_package = "github.com/livekit/protocol/rpc";

import "options.proto";
import "livekit_models.proto";
import "livekit_room.proto";

service RoomManager {
rpc CreateRoom(livekit.CreateRoomRequest) returns (livekit.Room) {
option (psrpc.options) = {
topics: true
topic_params: {
group: "node"
names: ["node_id"]
typed: true
};
};
};
}
1 change: 1 addition & 0 deletions protobufs/rpc/signal.proto
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ service Signal {
stream: true
topics: true
topic_params: {
group: "node"
names: ["node_id"]
typed: true
single_server: true
Expand Down
4 changes: 2 additions & 2 deletions replay/cloud_replay.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

94 changes: 94 additions & 0 deletions rpc/roommanager.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

155 changes: 155 additions & 0 deletions rpc/roommanager.psrpc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions rpc/signal.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ec964a6

Please sign in to comment.