mirror of
https://github.com/datarhei/core.git
synced 2025-10-04 07:37:33 +08:00
Add GoSRT & improvements (repo-merge)
Commits (Ingo Oppermann): - Add experimental SRT connection stats and logs - Hide /config/reload endpoint in reade-only mode - Add SRT server - Create v16 in go.mod - Fix data races, tests, lint, and update dependencies - Add trailing slash for routed directories (datarhei/restreamer#340) - Allow relative URLs in content in static routes Co-Authored-By: Ingo Oppermann <57445+ioppermann@users.noreply.github.com>
This commit is contained in:
74
docs/docs.go
74
docs/docs.go
@@ -17,7 +17,7 @@ const docTemplate = `{
|
||||
},
|
||||
"license": {
|
||||
"name": "Apache 2.0",
|
||||
"url": "https://github.com/datarhei/core/blob/main/LICENSE"
|
||||
"url": "https://github.com/datarhei/core/v16/blob/main/LICENSE"
|
||||
},
|
||||
"version": "{{.Version}}"
|
||||
},
|
||||
@@ -1784,11 +1784,11 @@ const docTemplate = `{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"description": "List all currently publishing streams",
|
||||
"description": "List all currently publishing RTMP streams",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"summary": "List all publishing streams",
|
||||
"summary": "List all publishing RTMP streams",
|
||||
"operationId": "rtmp-3-list-channels",
|
||||
"responses": {
|
||||
"200": {
|
||||
@@ -1911,6 +1911,32 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v3/srt": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"description": "List all currently publishing SRT streams",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"summary": "List all publishing SRT treams",
|
||||
"operationId": "srt-3-list-channels",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/api.SRTChannel"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v3/widget/process/{id}": {
|
||||
"get": {
|
||||
"description": "Fetch minimal statistics about a process, which is not protected by any auth.",
|
||||
@@ -2640,6 +2666,23 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"srt": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"address": {
|
||||
"type": "string"
|
||||
},
|
||||
"enable": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"passphrase": {
|
||||
"type": "string"
|
||||
},
|
||||
"token": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"storage": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -3447,6 +3490,14 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.SRTChannel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.Session": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -3944,6 +3995,23 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"srt": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"address": {
|
||||
"type": "string"
|
||||
},
|
||||
"enable": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"passphrase": {
|
||||
"type": "string"
|
||||
},
|
||||
"token": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"storage": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
Reference in New Issue
Block a user