mirror of
https://github.com/datarhei/core.git
synced 2025-10-01 22:32:28 +08:00
Add v16.8.0
This commit is contained in:
680
docs/docs.go
680
docs/docs.go
@@ -1,32 +1,23 @@
|
||||
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
||||
// This file was generated by swaggo/swag at
|
||||
// 2022-03-31 16:22:16.716974 +0200 CEST m=+0.265947626
|
||||
|
||||
// Package docs GENERATED BY SWAG; DO NOT EDIT
|
||||
// This file was generated by swaggo/swag
|
||||
package docs
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"strings"
|
||||
import "github.com/swaggo/swag"
|
||||
|
||||
"github.com/alecthomas/template"
|
||||
"github.com/swaggo/swag"
|
||||
)
|
||||
|
||||
var doc = `{
|
||||
const docTemplate = `{
|
||||
"schemes": {{ marshal .Schemes }},
|
||||
"swagger": "2.0",
|
||||
"info": {
|
||||
"description": "{{.Description}}",
|
||||
"description": "{{escape .Description}}",
|
||||
"title": "{{.Title}}",
|
||||
"contact": {
|
||||
"name": "datarheiCORE Support",
|
||||
"name": "datarhei Core Support",
|
||||
"url": "https://www.datarhei.com",
|
||||
"email": "hello@datarhei.com"
|
||||
},
|
||||
"license": {
|
||||
"name": "???",
|
||||
"url": "nothing"
|
||||
"name": "Apache 2.0",
|
||||
"url": "https://github.com/datarhei/core/blob/main/LICENSE"
|
||||
},
|
||||
"version": "{{.Version}}"
|
||||
},
|
||||
@@ -70,7 +61,9 @@ var doc = `{
|
||||
"summary": "Load GraphQL playground",
|
||||
"operationId": "graph-playground",
|
||||
"responses": {
|
||||
"200": {}
|
||||
"200": {
|
||||
"description": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -787,9 +780,7 @@ var doc = `{
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/api.Metadata"
|
||||
}
|
||||
"schema": {}
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad Request",
|
||||
@@ -830,17 +821,13 @@ var doc = `{
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/api.Metadata"
|
||||
}
|
||||
"schema": {}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/api.Metadata"
|
||||
}
|
||||
"schema": {}
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad Request",
|
||||
@@ -1247,9 +1234,7 @@ var doc = `{
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/api.Metadata"
|
||||
}
|
||||
"schema": {}
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad Request",
|
||||
@@ -1297,17 +1282,13 @@ var doc = `{
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/api.Metadata"
|
||||
}
|
||||
"schema": {}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/api.Metadata"
|
||||
}
|
||||
"schema": {}
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad Request",
|
||||
@@ -1849,12 +1830,6 @@ var doc = `{
|
||||
"schema": {
|
||||
"$ref": "#/definitions/api.SessionsSummary"
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "Not Found",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/api.Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1886,12 +1861,6 @@ var doc = `{
|
||||
"schema": {
|
||||
"$ref": "#/definitions/api.SessionsActive"
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "Not Found",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/api.Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2233,14 +2202,12 @@ var doc = `{
|
||||
"type": "string"
|
||||
},
|
||||
"input": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/api.AVstreamIO"
|
||||
},
|
||||
"looping": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"output": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/api.AVstreamIO"
|
||||
},
|
||||
"queue": {
|
||||
@@ -2294,7 +2261,6 @@ var doc = `{
|
||||
"type": "integer"
|
||||
},
|
||||
"version": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/api.Version"
|
||||
}
|
||||
}
|
||||
@@ -2319,17 +2285,467 @@ var doc = `{
|
||||
"api.Config": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"client": {
|
||||
"config": {
|
||||
"$ref": "#/definitions/api.ConfigData"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string"
|
||||
},
|
||||
"token": {
|
||||
"loaded_at": {
|
||||
"type": "string"
|
||||
},
|
||||
"url": {
|
||||
"overrides": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"updated_at": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.ConfigData": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"address": {
|
||||
"type": "string"
|
||||
},
|
||||
"api": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"access": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"http": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"allow": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"block": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"https": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"allow": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"block": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"auth0": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enable": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"tenants": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/config.Auth0Tenant"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"disable_localhost": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"enable": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"jwt": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"password": {
|
||||
"type": "string"
|
||||
},
|
||||
"username": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"read_only": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string"
|
||||
},
|
||||
"db": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"dir": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"debug": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"force_gc": {
|
||||
"type": "integer"
|
||||
},
|
||||
"profiling": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ffmpeg": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"access": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"input": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"allow": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"block": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"allow": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"block": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"binary": {
|
||||
"type": "string"
|
||||
},
|
||||
"log": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"max_history": {
|
||||
"type": "integer"
|
||||
},
|
||||
"max_lines": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"max_processes": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"host": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"auto": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"name": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"log": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"level": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"debug",
|
||||
"info",
|
||||
"warn",
|
||||
"error",
|
||||
"silent"
|
||||
]
|
||||
},
|
||||
"max_lines": {
|
||||
"type": "integer"
|
||||
},
|
||||
"topics": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"metrics": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enable": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"enable_prometheus": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"interval_sec": {
|
||||
"description": "seconds",
|
||||
"type": "integer"
|
||||
},
|
||||
"range_sec": {
|
||||
"description": "seconds",
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"playout": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enable": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"max_port": {
|
||||
"type": "integer"
|
||||
},
|
||||
"min_port": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"router": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"blocked_prefixes": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"routes": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"ui_path": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"rtmp": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"address": {
|
||||
"type": "string"
|
||||
},
|
||||
"app": {
|
||||
"type": "string"
|
||||
},
|
||||
"enable": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"enable_tls": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"token": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"service": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enable": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"token": {
|
||||
"type": "string"
|
||||
},
|
||||
"url": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enable": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"ip_ignorelist": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"max_bitrate_mbit": {
|
||||
"type": "integer"
|
||||
},
|
||||
"max_sessions": {
|
||||
"type": "integer"
|
||||
},
|
||||
"persist": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"persist_interval_sec": {
|
||||
"type": "integer"
|
||||
},
|
||||
"session_timeout_sec": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"storage": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"cors": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"origins": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"disk": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"cache": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enable": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"max_file_size_mbytes": {
|
||||
"type": "integer"
|
||||
},
|
||||
"max_size_mbytes": {
|
||||
"type": "integer"
|
||||
},
|
||||
"ttl_seconds": {
|
||||
"type": "integer"
|
||||
},
|
||||
"types": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"dir": {
|
||||
"type": "string"
|
||||
},
|
||||
"max_size_mbytes": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"memory": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"auth": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enable": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"password": {
|
||||
"type": "string"
|
||||
},
|
||||
"username": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"max_size_mbytes": {
|
||||
"type": "integer"
|
||||
},
|
||||
"purge": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mimetypes_file": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"tls": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"address": {
|
||||
"type": "string"
|
||||
},
|
||||
"auto": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"cert_file": {
|
||||
"type": "string"
|
||||
},
|
||||
"enable": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"key_file": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"update_check": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"version": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.ConfigError": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
@@ -2376,22 +2792,16 @@ var doc = `{
|
||||
"query": {
|
||||
"type": "string"
|
||||
},
|
||||
"variables": {
|
||||
"type": "object"
|
||||
}
|
||||
"variables": {}
|
||||
}
|
||||
},
|
||||
"api.GraphResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"type": "object"
|
||||
},
|
||||
"data": {},
|
||||
"errors": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object"
|
||||
}
|
||||
"items": {}
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -2433,9 +2843,6 @@ var doc = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.Metadata": {
|
||||
"type": "object"
|
||||
},
|
||||
"api.MetricsQuery": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -2448,7 +2855,7 @@ var doc = `{
|
||||
"$ref": "#/definitions/api.MetricsQueryMetric"
|
||||
}
|
||||
},
|
||||
"timeframe_sec": {
|
||||
"timerange_sec": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
@@ -2470,11 +2877,17 @@ var doc = `{
|
||||
"api.MetricsResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"interval_sec": {
|
||||
"type": "integer"
|
||||
},
|
||||
"metrics": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/api.MetricsResponseMetric"
|
||||
}
|
||||
},
|
||||
"timerange_sec": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -2493,23 +2906,29 @@ var doc = `{
|
||||
"values": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "number"
|
||||
}
|
||||
"$ref": "#/definitions/api.MetricsResponseValue"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.MetricsResponseValue": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"ts": {
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"type": "number"
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.PlayoutStatus": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"aqueue": {
|
||||
"type": "integer"
|
||||
},
|
||||
"debug": {
|
||||
"type": "object"
|
||||
},
|
||||
"debug": {},
|
||||
"drop": {
|
||||
"type": "integer"
|
||||
},
|
||||
@@ -2529,14 +2948,12 @@ var doc = `{
|
||||
"type": "string"
|
||||
},
|
||||
"input": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/api.PlayoutStatusIO"
|
||||
},
|
||||
"looping": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"output": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/api.PlayoutStatusIO"
|
||||
},
|
||||
"queue": {
|
||||
@@ -2546,7 +2963,6 @@ var doc = `{
|
||||
"type": "integer"
|
||||
},
|
||||
"swap": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/api.PlayoutStatusSwap"
|
||||
},
|
||||
"url": {
|
||||
@@ -2672,7 +3088,6 @@ var doc = `{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"config": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/api.ProcessConfig"
|
||||
},
|
||||
"created_at": {
|
||||
@@ -2681,19 +3096,14 @@ var doc = `{
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"metadata": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/api.Metadata"
|
||||
},
|
||||
"metadata": {},
|
||||
"reference": {
|
||||
"type": "string"
|
||||
},
|
||||
"report": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/api.ProcessReport"
|
||||
},
|
||||
"state": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/api.ProcessState"
|
||||
},
|
||||
"type": {
|
||||
@@ -2704,10 +3114,8 @@ var doc = `{
|
||||
"api.ProcessConfig": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"id",
|
||||
"input",
|
||||
"output",
|
||||
"type"
|
||||
"output"
|
||||
],
|
||||
"properties": {
|
||||
"autostart": {
|
||||
@@ -2723,7 +3131,6 @@ var doc = `{
|
||||
}
|
||||
},
|
||||
"limits": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/api.ProcessConfigLimits"
|
||||
},
|
||||
"options": {
|
||||
@@ -2753,7 +3160,8 @@ var doc = `{
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"ffmpeg"
|
||||
"ffmpeg",
|
||||
""
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -2761,13 +3169,18 @@ var doc = `{
|
||||
"api.ProcessConfigIO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"address",
|
||||
"id"
|
||||
"address"
|
||||
],
|
||||
"properties": {
|
||||
"address": {
|
||||
"type": "string"
|
||||
},
|
||||
"cleanup": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/api.ProcessConfigIOCleanup"
|
||||
}
|
||||
},
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -2779,6 +3192,26 @@ var doc = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.ProcessConfigIOCleanup": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"pattern"
|
||||
],
|
||||
"properties": {
|
||||
"max_file_age_seconds": {
|
||||
"type": "integer"
|
||||
},
|
||||
"max_files": {
|
||||
"type": "integer"
|
||||
},
|
||||
"pattern": {
|
||||
"type": "string"
|
||||
},
|
||||
"purge_on_delete": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.ProcessConfigLimits": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -2870,7 +3303,6 @@ var doc = `{
|
||||
"type": "string"
|
||||
},
|
||||
"progress": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/api.Progress"
|
||||
},
|
||||
"reconnect_seconds": {
|
||||
@@ -2938,7 +3370,6 @@ var doc = `{
|
||||
},
|
||||
"avstream": {
|
||||
"description": "avstream",
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/api.AVstream"
|
||||
},
|
||||
"bitrate_kbit": {
|
||||
@@ -3091,11 +3522,9 @@ var doc = `{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"active": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/api.SessionSummaryActive"
|
||||
},
|
||||
"summary": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/api.SessionSummarySummary"
|
||||
}
|
||||
}
|
||||
@@ -3406,9 +3835,11 @@ var doc = `{
|
||||
"type": "boolean"
|
||||
},
|
||||
"interval_sec": {
|
||||
"description": "seconds",
|
||||
"type": "integer"
|
||||
},
|
||||
"range_sec": {
|
||||
"description": "seconds",
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
@@ -3444,6 +3875,9 @@ var doc = `{
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"ui_path": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -3481,7 +3915,7 @@ var doc = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"stats": {
|
||||
"sessions": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enable": {
|
||||
@@ -3608,6 +4042,9 @@ var doc = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"update_check": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"version": {
|
||||
"type": "integer"
|
||||
}
|
||||
@@ -3919,49 +4356,18 @@ var doc = `{
|
||||
}
|
||||
}`
|
||||
|
||||
type swaggerInfo struct {
|
||||
Version string
|
||||
Host string
|
||||
BasePath string
|
||||
Schemes []string
|
||||
Title string
|
||||
Description string
|
||||
}
|
||||
|
||||
// SwaggerInfo holds exported Swagger Info so clients can modify it
|
||||
var SwaggerInfo = swaggerInfo{
|
||||
Version: "6.0",
|
||||
Host: "",
|
||||
BasePath: "/",
|
||||
Schemes: []string{},
|
||||
Title: "datarhei Core API",
|
||||
Description: "Expose REST API for the datarheiCORE",
|
||||
}
|
||||
|
||||
type s struct{}
|
||||
|
||||
func (s *s) ReadDoc() string {
|
||||
sInfo := SwaggerInfo
|
||||
sInfo.Description = strings.Replace(sInfo.Description, "\n", "\\n", -1)
|
||||
|
||||
t, err := template.New("swagger_info").Funcs(template.FuncMap{
|
||||
"marshal": func(v interface{}) string {
|
||||
a, _ := json.Marshal(v)
|
||||
return string(a)
|
||||
},
|
||||
}).Parse(doc)
|
||||
if err != nil {
|
||||
return doc
|
||||
}
|
||||
|
||||
var tpl bytes.Buffer
|
||||
if err := t.Execute(&tpl, sInfo); err != nil {
|
||||
return doc
|
||||
}
|
||||
|
||||
return tpl.String()
|
||||
var SwaggerInfo = &swag.Spec{
|
||||
Version: "3.0",
|
||||
Host: "",
|
||||
BasePath: "/",
|
||||
Schemes: []string{},
|
||||
Title: "datarhei Core API",
|
||||
Description: "Expose REST API for the datarhei Core",
|
||||
InfoInstanceName: "swagger",
|
||||
SwaggerTemplate: docTemplate,
|
||||
}
|
||||
|
||||
func init() {
|
||||
swag.Register(swag.Name, &s{})
|
||||
swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
|
||||
}
|
||||
|
Reference in New Issue
Block a user