components

package
v0.0.0-...-472a40a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

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 RunAgent

func RunAgent(configDirectory string, configuration *models.Configuration, communication *models.Communication, mqttClient mqtt.Client, uptimeStart time.Time, cameraSettings *models.Camera, captureDevice *capture.Capture) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL