Skip to content

Commit

Permalink
IO fix: workaround for ONVIF event system
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricve committed Aug 25, 2024
1 parent 79205ab commit e0c6375
Show file tree
Hide file tree
Showing 8 changed files with 172 additions and 78 deletions.
40 changes: 31 additions & 9 deletions machinery/docs/docs.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Package docs GENERATED BY SWAG; DO NOT EDIT
// This file was generated by swaggo/swag
// Package docs Code generated by swaggo/swag. DO NOT EDIT
package docs

import "github.com/swaggo/swag"
Expand Down Expand Up @@ -388,7 +387,7 @@ const docTemplate = `{
"operationId": "snapshot-base64",
"responses": {
"200": {
"description": ""
"description": "OK"
}
}
}
Expand All @@ -403,7 +402,7 @@ const docTemplate = `{
"operationId": "snapshot-jpeg",
"responses": {
"200": {
"description": ""
"description": "OK"
}
}
}
Expand Down Expand Up @@ -476,7 +475,7 @@ const docTemplate = `{
"operationId": "config",
"responses": {
"200": {
"description": ""
"description": "OK"
}
}
},
Expand All @@ -500,7 +499,7 @@ const docTemplate = `{
],
"responses": {
"200": {
"description": ""
"description": "OK"
}
}
}
Expand All @@ -515,7 +514,7 @@ const docTemplate = `{
"operationId": "dashboard",
"responses": {
"200": {
"description": ""
"description": "OK"
}
}
}
Expand All @@ -530,7 +529,7 @@ const docTemplate = `{
"operationId": "days",
"responses": {
"200": {
"description": ""
"description": "OK"
}
}
}
Expand Down Expand Up @@ -590,7 +589,7 @@ const docTemplate = `{
],
"responses": {
"200": {
"description": ""
"description": "OK"
}
}
}
Expand Down Expand Up @@ -803,6 +802,9 @@ const docTemplate = `{
"description": "obsolete",
"type": "string"
},
"hub_encryption": {
"type": "string"
},
"hub_key": {
"type": "string"
},
Expand Down Expand Up @@ -839,6 +841,12 @@ const docTemplate = `{
"offline": {
"type": "string"
},
"realtimeprocessing": {
"type": "string"
},
"realtimeprocessing_topic": {
"type": "string"
},
"region": {
"$ref": "#/definitions/models.Region"
},
Expand All @@ -863,6 +871,9 @@ const docTemplate = `{
"timezone": {
"type": "string"
},
"turn_force": {
"type": "string"
},
"turn_password": {
"type": "string"
},
Expand Down Expand Up @@ -957,9 +968,18 @@ const docTemplate = `{
"rtsp": {
"type": "string"
},
"sub_fps": {
"type": "string"
},
"sub_height": {
"type": "integer"
},
"sub_rtsp": {
"type": "string"
},
"sub_width": {
"type": "integer"
},
"width": {
"type": "integer"
}
Expand Down Expand Up @@ -1166,6 +1186,8 @@ var SwaggerInfo = &swag.Spec{
Description: "This is the API for using and configure Kerberos Agent.",
InfoInstanceName: "swagger",
SwaggerTemplate: docTemplate,
LeftDelim: "{{",
RightDelim: "}}",
}

func init() {
Expand Down
35 changes: 28 additions & 7 deletions machinery/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@
"operationId": "snapshot-base64",
"responses": {
"200": {
"description": ""
"description": "OK"
}
}
}
Expand All @@ -395,7 +395,7 @@
"operationId": "snapshot-jpeg",
"responses": {
"200": {
"description": ""
"description": "OK"
}
}
}
Expand Down Expand Up @@ -468,7 +468,7 @@
"operationId": "config",
"responses": {
"200": {
"description": ""
"description": "OK"
}
}
},
Expand All @@ -492,7 +492,7 @@
],
"responses": {
"200": {
"description": ""
"description": "OK"
}
}
}
Expand All @@ -507,7 +507,7 @@
"operationId": "dashboard",
"responses": {
"200": {
"description": ""
"description": "OK"
}
}
}
Expand All @@ -522,7 +522,7 @@
"operationId": "days",
"responses": {
"200": {
"description": ""
"description": "OK"
}
}
}
Expand Down Expand Up @@ -582,7 +582,7 @@
],
"responses": {
"200": {
"description": ""
"description": "OK"
}
}
}
Expand Down Expand Up @@ -795,6 +795,9 @@
"description": "obsolete",
"type": "string"
},
"hub_encryption": {
"type": "string"
},
"hub_key": {
"type": "string"
},
Expand Down Expand Up @@ -831,6 +834,12 @@
"offline": {
"type": "string"
},
"realtimeprocessing": {
"type": "string"
},
"realtimeprocessing_topic": {
"type": "string"
},
"region": {
"$ref": "#/definitions/models.Region"
},
Expand All @@ -855,6 +864,9 @@
"timezone": {
"type": "string"
},
"turn_force": {
"type": "string"
},
"turn_password": {
"type": "string"
},
Expand Down Expand Up @@ -949,9 +961,18 @@
"rtsp": {
"type": "string"
},
"sub_fps": {
"type": "string"
},
"sub_height": {
"type": "integer"
},
"sub_rtsp": {
"type": "string"
},
"sub_width": {
"type": "integer"
},
"width": {
"type": "integer"
}
Expand Down
28 changes: 21 additions & 7 deletions machinery/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ definitions:
heartbeaturi:
description: obsolete
type: string
hub_encryption:
type: string
hub_key:
type: string
hub_private_key:
Expand All @@ -119,6 +121,10 @@ definitions:
type: string
offline:
type: string
realtimeprocessing:
type: string
realtimeprocessing_topic:
type: string
region:
$ref: '#/definitions/models.Region'
remove_after_upload:
Expand All @@ -135,6 +141,8 @@ definitions:
type: array
timezone:
type: string
turn_force:
type: string
turn_password:
type: string
turn_username:
Expand Down Expand Up @@ -196,8 +204,14 @@ definitions:
type: string
rtsp:
type: string
sub_fps:
type: string
sub_height:
type: integer
sub_rtsp:
type: string
sub_width:
type: integer
width:
type: integer
type: object
Expand Down Expand Up @@ -564,7 +578,7 @@ paths:
operationId: snapshot-base64
responses:
"200":
description: ""
description: OK
summary: Get a snapshot from the camera in base64.
tags:
- camera
Expand All @@ -574,7 +588,7 @@ paths:
operationId: snapshot-jpeg
responses:
"200":
description: ""
description: OK
summary: Get a snapshot from the camera in jpeg format.
tags:
- camera
Expand Down Expand Up @@ -624,7 +638,7 @@ paths:
operationId: config
responses:
"200":
description: ""
description: OK
summary: Get the current configuration.
tags:
- config
Expand All @@ -640,7 +654,7 @@ paths:
$ref: '#/definitions/models.Config'
responses:
"200":
description: ""
description: OK
summary: Update the current configuration.
tags:
- config
Expand All @@ -650,7 +664,7 @@ paths:
operationId: dashboard
responses:
"200":
description: ""
description: OK
summary: Get all information showed on the dashboard.
tags:
- general
Expand All @@ -660,7 +674,7 @@ paths:
operationId: days
responses:
"200":
description: ""
description: OK
summary: Get all days stored in the recordings directory.
tags:
- general
Expand Down Expand Up @@ -698,7 +712,7 @@ paths:
$ref: '#/definitions/models.EventFilter'
responses:
"200":
description: ""
description: OK
summary: Get the latest recordings (events) from the recordings directory.
tags:
- general
Expand Down
2 changes: 1 addition & 1 deletion machinery/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"gopkg.in/DataDog/dd-trace-go.v1/profiler"
)

var VERSION = "3.2.0"
var VERSION = utils.VERSION

func main() {
// You might be interested in debugging the agent.
Expand Down
Loading

0 comments on commit e0c6375

Please sign in to comment.