wrtc test
This commit is contained in:
parent
aa47bbe7c2
commit
e7aef1e3ab
15 changed files with 423 additions and 6 deletions
|
|
@ -41,10 +41,13 @@ option (file_options) = {
|
|||
id: "metrics",
|
||||
name: "Metrics",
|
||||
//encrypted:true,
|
||||
context:{
|
||||
context:[{
|
||||
key:"operator_id",
|
||||
value:"string"
|
||||
}
|
||||
},{
|
||||
key:"app_id",
|
||||
value:"string"
|
||||
}]
|
||||
},
|
||||
{
|
||||
id:"app",
|
||||
|
|
@ -204,6 +207,18 @@ service LightningPub {
|
|||
option (http_route) = "/api/reports/lnd";
|
||||
option (nostr) = true;
|
||||
}
|
||||
rpc SubmitWebRtcMessage(structs.WebRtcMessage) returns (structs.WebRtcAnswer) {
|
||||
option (auth_type) = "Metrics";
|
||||
option (http_method) = "post";
|
||||
option (http_route) = "/api/upgrade/wrtc";
|
||||
option (nostr) = true;
|
||||
}
|
||||
rpc SubToWebRtcCandidates(structs.Empty) returns (stream structs.WebRtcCandidate) {
|
||||
option (auth_type) = "Metrics";
|
||||
option (http_method) = "post";
|
||||
option (http_route) = "/api/upgrade/wrtc/candidates";
|
||||
option (nostr) = true;
|
||||
}
|
||||
|
||||
rpc CreateOneTimeInviteLink(structs.CreateOneTimeInviteLinkRequest) returns (structs.CreateOneTimeInviteLinkResponse) {
|
||||
option (auth_type) = "Admin";
|
||||
|
|
|
|||
|
|
@ -206,6 +206,21 @@ message LndChannels {
|
|||
repeated OpenChannel open_channels = 1;
|
||||
}
|
||||
|
||||
message WebRtcMessage {
|
||||
oneof message {
|
||||
string offer = 1;
|
||||
string candidate = 2;
|
||||
}
|
||||
}
|
||||
|
||||
message WebRtcAnswer {
|
||||
optional string answer = 1;
|
||||
}
|
||||
|
||||
message WebRtcCandidate {
|
||||
string candidate = 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
message OpenChannelRequest{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue