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:
Jan Stabenow
2022-06-23 22:13:58 +02:00
parent d7db9e4efe
commit eb1cc37456
323 changed files with 17524 additions and 10050 deletions

View File

@@ -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": {