Documentation ¶
Index ¶
- func Bootstrap(configDirectory string, configuration *models.Configuration, ...)
- func ControlAgent(communication *models.Communication)
- func GetBackChannelAudioCodec(streams []av.CodecData, communication *models.Communication) av.AudioCodecData
- func GetConfig(c *gin.Context, captureDevice *capture.Capture, ...)
- func GetDashboard(c *gin.Context, configDirectory string, configuration *models.Configuration, ...)
- func GetDays(c *gin.Context, configDirectory string, configuration *models.Configuration, ...)
- func GetLatestEvents(c *gin.Context, configDirectory string, configuration *models.Configuration, ...)
- func GetSnapshotBase64(c *gin.Context, captureDevice *capture.Capture, ...)
- func GetSnapshotRaw(c *gin.Context, captureDevice *capture.Capture, ...)
- func MakeRecording(c *gin.Context, communication *models.Communication)
- func RestartAgent(c *gin.Context, communication *models.Communication)
- func RunAgent(configDirectory string, configuration *models.Configuration, ...) string
- func StopAgent(c *gin.Context, communication *models.Communication)
- func UpdateConfig(c *gin.Context, configDirectory string, configuration *models.Configuration, ...)
- func WriteAudioToBackchannel(communication *models.Communication, rtspClient capture.RTSPClient)
- func WriteFileToBackChannel(infile av.DemuxCloser)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bootstrap ¶
func Bootstrap(configDirectory string, configuration *models.Configuration, communication *models.Communication, captureDevice *capture.Capture)
func ControlAgent ¶
func ControlAgent(communication *models.Communication)
ControlAgent will check if the camera is still connected, if not it will restart the agent. In the other thread we are keeping track of the number of packets received, and particular the keyframe packets. Once we are not receiving any packets anymore, we will restart the agent.
func GetBackChannelAudioCodec ¶
func GetBackChannelAudioCodec(streams []av.CodecData, communication *models.Communication) av.AudioCodecData
func GetConfig ¶
func GetConfig(c *gin.Context, captureDevice *capture.Capture, configuration *models.Configuration, communication *models.Communication)
GetConfig godoc @Router /api/config [get] @ID config @Tags config @Summary Get the current configuration. @Description Get the current configuration. @Success 200
func GetDashboard ¶
func GetDashboard(c *gin.Context, configDirectory string, configuration *models.Configuration, communication *models.Communication)
GetDashboard godoc @Router /api/dashboard [get] @ID dashboard @Tags general @Summary Get all information showed on the dashboard. @Description Get all information showed on the dashboard. @Success 200
func GetDays ¶
func GetDays(c *gin.Context, configDirectory string, configuration *models.Configuration, communication *models.Communication)
GetDays godoc @Router /api/days [get] @ID days @Tags general @Summary Get all days stored in the recordings directory. @Description Get all days stored in the recordings directory. @Success 200
func GetLatestEvents ¶
func GetLatestEvents(c *gin.Context, configDirectory string, configuration *models.Configuration, communication *models.Communication)
GetLatestEvents godoc @Router /api/latest-events [post] @ID latest-events @Tags general @Param eventFilter body models.EventFilter true "Event filter" @Summary Get the latest recordings (events) from the recordings directory. @Description Get the latest recordings (events) from the recordings directory. @Success 200
func GetSnapshotBase64 ¶
func GetSnapshotBase64(c *gin.Context, captureDevice *capture.Capture, configuration *models.Configuration, communication *models.Communication)
GetSnapshotBase64 godoc @Router /api/camera/snapshot/base64 [get] @ID snapshot-base64 @Tags camera @Summary Get a snapshot from the camera in base64. @Description Get a snapshot from the camera in base64. @Success 200
func GetSnapshotRaw ¶
func GetSnapshotRaw(c *gin.Context, captureDevice *capture.Capture, configuration *models.Configuration, communication *models.Communication)
GetSnapshotJpeg godoc @Router /api/camera/snapshot/jpeg [get] @ID snapshot-jpeg @Tags camera @Summary Get a snapshot from the camera in jpeg format. @Description Get a snapshot from the camera in jpeg format. @Success 200
func MakeRecording ¶
func MakeRecording(c *gin.Context, communication *models.Communication)
MakeRecording godoc @Router /api/camera/record [post] @ID camera-record @Tags camera @Summary Make a recording. @Description Make a recording. @Success 200 {object} models.APIResponse
func RestartAgent ¶
func RestartAgent(c *gin.Context, communication *models.Communication)
RestartAgent godoc @Router /api/camera/restart [post] @ID camera-restart @Tags camera @Summary Restart the agent. @Description Restart the agent. @Success 200 {object} models.APIResponse
func StopAgent ¶
func StopAgent(c *gin.Context, communication *models.Communication)
StopAgent godoc @Router /api/camera/stop [post] @ID camera-stop @Tags camera @Summary Stop the agent. @Description Stop the agent. @Success 200 {object} models.APIResponse
func UpdateConfig ¶
func UpdateConfig(c *gin.Context, configDirectory string, configuration *models.Configuration, communication *models.Communication)
UpdateConfig godoc @Router /api/config [post] @ID config @Tags config @Param config body models.Config true "Configuration" @Summary Update the current configuration. @Description Update the current configuration. @Success 200
func WriteAudioToBackchannel ¶
func WriteAudioToBackchannel(communication *models.Communication, rtspClient capture.RTSPClient)
func WriteFileToBackChannel ¶
func WriteFileToBackChannel(infile av.DemuxCloser)
Types ¶
This section is empty.