github.com/whoyao/protocol@v0.0.0-20230519045905-2d8ace718ca5/rpc/io.proto (about)

     1  syntax = "proto3";
     2  
     3  package rpc;
     4  
     5  option go_package = "github.com/livekit/livekit/pkg/service/rpc";
     6  
     7  import "livekit_egress.proto";
     8  import "livekit_ingress.proto";
     9  import "google/protobuf/empty.proto";
    10  
    11  service IOInfo {
    12    rpc UpdateEgressInfo(livekit.EgressInfo) returns (google.protobuf.Empty);
    13    rpc GetIngressInfo(GetIngressInfoRequest) returns (GetIngressInfoResponse);
    14    rpc UpdateIngressState(UpdateIngressStateRequest) returns (google.protobuf.Empty);
    15  }
    16  
    17  // Query an ingress info from an ingress ID or stream key
    18  message GetIngressInfoRequest {
    19    string ingress_id = 1;
    20    string stream_key = 2;
    21  }
    22  
    23  message GetIngressInfoResponse {
    24    livekit.IngressInfo info = 1;
    25    string token = 2;
    26    string ws_url = 3;
    27  }
    28  
    29  // Request to store an update to the ingress state ingress -> service
    30  message UpdateIngressStateRequest {
    31    string ingress_id = 1;
    32    livekit.IngressState state = 2;
    33  }