Documentation
¶
Overview ¶
Package api provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.6.0 DO NOT EDIT.
Index ¶
- Constants
- func GetSwagger() (swagger *openapi3.T, err error)
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- func SetupModeAPIConfig(cfg config.APIConfig) config.APIConfig
- type Activity
- type ActivityCategory
- type ActivityCounts
- type ActivityEvidenceCorrection
- type ActivityEvidenceCorrectionAction
- type ActivityEvidenceCorrectionRequest
- type ActivityGrouping
- type ActivityGroupingStrategy
- type ActivityListEnvelope
- type ActivityState
- type AddObjectReference201JSONResponse
- type AddObjectReference400JSONResponse
- type AddObjectReference404JSONResponse
- type AddObjectReference503JSONResponse
- type AddObjectReferenceJSONRequestBody
- type AddObjectReferenceRequest
- type AddObjectReferenceRequestObject
- type AddObjectReferenceResponse
- type AddObjectReferenceResponseObject
- type AnswerDoorbell200JSONResponse
- type AnswerDoorbell404JSONResponse
- type AnswerDoorbellRequestObject
- type AnswerDoorbellResponseObject
- type AssignFace200JSONResponse
- type AssignFace400JSONResponse
- type AssignFaceJSONRequestBody
- type AssignFaceRequest
- type AssignFaceRequestObject
- type AssignFaceResponse
- type AssignFaceResponseObject
- type AssignFaceResponseStatus
- type AssignPersonRequest
- type AssignPersonResponse
- type AssignPersonToEvent200JSONResponse
- type AssignPersonToEvent400JSONResponse
- type AssignPersonToEvent404JSONResponse
- type AssignPersonToEventJSONRequestBody
- type AssignPersonToEventRequestObject
- type AssignPersonToEventResponseObject
- type AuthMeResponse
- type BackfillFaces200ApplicationxNdjsonResponse
- type BackfillFacesRequestObject
- type BackfillFacesResponseObject
- type CameraBreakdown
- type CameraDetail
- type CameraHealthCheck
- type CameraInfo
- type CameraListEnvelope
- type CameraStatus
- type CameraStreamCapabilities
- type CameraStreamURLs
- type ChangePassword200JSONResponse
- type ChangePassword400JSONResponse
- type ChangePasswordJSONRequestBody
- type ChangePasswordRequest
- type ChangePasswordRequestObject
- type ChangePasswordResponseObject
- type CreateObject201JSONResponse
- type CreateObject400JSONResponse
- type CreateObject404JSONResponse
- type CreateObject503JSONResponse
- type CreateObjectFromCameraTrack201JSONResponse
- type CreateObjectFromCameraTrack400JSONResponse
- type CreateObjectFromCameraTrack404JSONResponse
- type CreateObjectFromCameraTrack503JSONResponse
- type CreateObjectFromCameraTrackJSONRequestBody
- type CreateObjectFromCameraTrackRequestObject
- type CreateObjectFromCameraTrackResponseObject
- type CreateObjectFromTrackRequest
- type CreateObjectJSONRequestBody
- type CreateObjectRequest
- type CreateObjectRequestObject
- type CreateObjectResponseObject
- type CreateToken201JSONResponse
- type CreateToken400JSONResponse
- type CreateTokenJSONRequestBody
- type CreateTokenRequest
- type CreateTokenRequestObject
- type CreateTokenResponse
- type CreateTokenResponseObject
- type CreateZone201JSONResponse
- type CreateZone400JSONResponse
- type CreateZone404JSONResponse
- type CreateZoneJSONRequestBody
- type CreateZoneRequest
- type CreateZoneRequestObject
- type CreateZoneResponseObject
- type DeleteObject200JSONResponse
- type DeleteObject404JSONResponse
- type DeleteObjectReference200JSONResponse
- type DeleteObjectReferenceRequestObject
- type DeleteObjectReferenceResponseObject
- type DeleteObjectRequestObject
- type DeleteObjectResponseObject
- type DeletePerson200JSONResponse
- type DeletePerson400JSONResponse
- type DeletePersonRequestObject
- type DeletePersonResponseObject
- type DeleteRequest
- type DeleteRequestTarget
- type DeleteResult
- type DeleteToken200JSONResponse
- type DeleteTokenRequestObject
- type DeleteTokenResponseObject
- type DeleteZone200JSONResponse
- type DeleteZone404JSONResponse
- type DeleteZoneRequestObject
- type DeleteZoneResponseObject
- type DismissSighting200JSONResponse
- type DismissSighting404JSONResponse
- type DismissSightingRequestObject
- type DismissSightingResponseObject
- type DoorbellAnswerResponse
- type DoorbellResponse
- type Error
- type Event
- type EventCategory
- type EventCounts
- type EventListEnvelope
- type ExcludeActivityEvidence200JSONResponse
- type ExcludeActivityEvidence400JSONResponse
- type ExcludeActivityEvidence404JSONResponse
- type ExcludeActivityEvidence409JSONResponse
- type ExcludeActivityEvidenceJSONRequestBody
- type ExcludeActivityEvidenceRequestObject
- type ExcludeActivityEvidenceResponseObject
- type ExportRecording200Videomp4Response
- type ExportRecording400JSONResponse
- type ExportRecordingParams
- type ExportRecordingRequestObject
- type ExportRecordingResponseObject
- type Face
- type FaceListEnvelope
- type FilesystemStats
- type GetActivity200JSONResponse
- type GetActivity404JSONResponse
- type GetActivityCounts200JSONResponse
- type GetActivityCountsRequestObject
- type GetActivityCountsResponseObject
- type GetActivityRequestObject
- type GetActivityResponseObject
- type GetAuthMe200JSONResponse
- type GetAuthMe401JSONResponse
- type GetAuthMeRequestObject
- type GetAuthMeResponseObject
- type GetCamera200JSONResponse
- type GetCamera404JSONResponse
- type GetCameraPlayback200ApplicationvndAppleMpegurlResponse
- type GetCameraPlayback400JSONResponse
- type GetCameraPlayback404JSONResponse
- type GetCameraPlaybackParams
- type GetCameraPlaybackRequestObject
- type GetCameraPlaybackResponseObject
- type GetCameraRequestObject
- type GetCameraResponseObject
- type GetCameraSnapshot200ImagejpegResponse
- type GetCameraSnapshot404JSONResponse
- type GetCameraSnapshotRequestObject
- type GetCameraSnapshotResponseObject
- type GetCameraThumbnail200ImagejpegResponse
- type GetCameraThumbnail400JSONResponse
- type GetCameraThumbnail404JSONResponse
- type GetCameraThumbnailParams
- type GetCameraThumbnailRequestObject
- type GetCameraThumbnailResponseObject
- type GetCameraTimeline200JSONResponse
- type GetCameraTimeline404JSONResponse
- type GetCameraTimelineParams
- type GetCameraTimelineRequestObject
- type GetCameraTimelineResponseObject
- type GetEvent200JSONResponse
- type GetEvent404JSONResponse
- type GetEventClip200Videomp4Response
- type GetEventClip404JSONResponse
- type GetEventClipRequestObject
- type GetEventClipResponseObject
- type GetEventCounts200JSONResponse
- type GetEventCountsParams
- type GetEventCountsRequestObject
- type GetEventCountsResponseObject
- type GetEventDetectionCrop200ImagejpegResponse
- type GetEventDetectionCrop404JSONResponse
- type GetEventDetectionCropRequestObject
- type GetEventDetectionCropResponseObject
- type GetEventRequestObject
- type GetEventResponseObject
- type GetEventSnapshot200ImagejpegResponse
- type GetEventSnapshot404JSONResponse
- type GetEventSnapshotParams
- type GetEventSnapshotRequestObject
- type GetEventSnapshotResponseObject
- type GetEventStream200TexteventStreamResponse
- type GetEventStreamRequestObject
- type GetEventStreamResponseObject
- type GetFaceCrop200ImagejpegResponse
- type GetFaceCrop404JSONResponse
- type GetFaceCropRequestObject
- type GetFaceCropResponseObject
- type GetHealth200JSONResponse
- type GetHealthLive200JSONResponse
- type GetHealthLiveRequestObject
- type GetHealthLiveResponseObject
- type GetHealthReady200JSONResponse
- type GetHealthReady503JSONResponse
- type GetHealthReadyRequestObject
- type GetHealthReadyResponseObject
- type GetHealthRequestObject
- type GetHealthResponseObject
- type GetLiveHLS200ApplicationvndAppleMpegurlResponse
- type GetLiveHLS404JSONResponse
- type GetLiveHLS503JSONResponse
- type GetLiveHLSInit200Videomp4Response
- type GetLiveHLSInit404JSONResponse
- type GetLiveHLSInitRequestObject
- type GetLiveHLSInitResponseObject
- type GetLiveHLSRequestObject
- type GetLiveHLSResponseObject
- type GetLiveHLSSegment200Videomp4Response
- type GetLiveHLSSegment404JSONResponse
- type GetLiveHLSSegmentRequestObject
- type GetLiveHLSSegmentResponseObject
- type GetMJPEG200MultipartResponse
- type GetMJPEG404JSONResponse
- type GetMJPEGRequestObject
- type GetMJPEGResponseObject
- type GetMSEWebSocket101Response
- type GetMSEWebSocket404JSONResponse
- type GetMSEWebSocketRequestObject
- type GetMSEWebSocketResponseObject
- type GetMetrics200TextResponse
- type GetMetricsRequestObject
- type GetMetricsResponseObject
- type GetObjectCrop200ImagejpegResponse
- type GetObjectCrop404JSONResponse
- type GetObjectCropParams
- type GetObjectCropRequestObject
- type GetObjectCropResponseObject
- type GetOpenAPISpec200JSONResponse
- type GetOpenAPISpecRequestObject
- type GetOpenAPISpecResponseObject
- type GetPerson200JSONResponse
- type GetPerson404JSONResponse
- type GetPersonRequestObject
- type GetPersonResponseObject
- type GetRecordingsCalendar200JSONResponse
- type GetRecordingsCalendarParams
- type GetRecordingsCalendarRequestObject
- type GetRecordingsCalendarResponseObject
- type GetRecordingsSummary200JSONResponse
- type GetRecordingsSummaryParams
- type GetRecordingsSummaryRequestObject
- type GetRecordingsSummaryResponseObject
- type GetSegment200Videomp4Response
- type GetSegment400JSONResponse
- type GetSegment404JSONResponse
- type GetSegmentHLS200Videomp4Response
- type GetSegmentHLS400JSONResponse
- type GetSegmentHLS404JSONResponse
- type GetSegmentHLSRequestObject
- type GetSegmentHLSResponseObject
- type GetSegmentInit200Videomp4Response
- type GetSegmentInit400JSONResponse
- type GetSegmentInit404JSONResponse
- type GetSegmentInitRequestObject
- type GetSegmentInitResponseObject
- type GetSegmentRequestObject
- type GetSegmentResponseObject
- type GetStorage200JSONResponse
- type GetStorageAudit200JSONResponse
- type GetStorageAuditParams
- type GetStorageAuditRequestObject
- type GetStorageAuditResponseObject
- type GetStorageRequestObject
- type GetStorageResponseObject
- type GetStreamingCapabilities200JSONResponse
- type GetStreamingCapabilitiesRequestObject
- type GetStreamingCapabilitiesResponseObject
- type GetSystem200JSONResponse
- type GetSystemRequestObject
- type GetSystemResponseObject
- type GetTalkbackCapabilities200JSONResponse
- type GetTalkbackCapabilities403JSONResponse
- type GetTalkbackCapabilities404JSONResponse
- type GetTalkbackCapabilitiesRequestObject
- type GetTalkbackCapabilitiesResponseObject
- type GetZonePresence200JSONResponse
- type GetZonePresence404JSONResponse
- type GetZonePresenceRequestObject
- type GetZonePresenceResponseObject
- type HealthChecks
- type HealthChecksDatabase
- type HealthChecksMqtt
- type HealthLiveResponse
- type HealthLiveResponseStatus
- type HealthReadyResponse
- type HealthReadyResponseStatus
- type HealthResponse
- type HealthResponseStatus
- type IdentifyEvent200JSONResponse
- type IdentifyEvent404JSONResponse
- type IdentifyEvent503JSONResponse
- type IdentifyEventRequestObject
- type IdentifyEventResponseObject
- type IgnoreFace200JSONResponse
- type IgnoreFace400JSONResponse
- type IgnoreFaceRequestObject
- type IgnoreFaceResponseObject
- type InvalidParamFormatError
- type KnownObject
- type ListActivities200JSONResponse
- type ListActivitiesParams
- type ListActivitiesParamsCategory
- type ListActivitiesParamsState
- type ListActivitiesRequestObject
- type ListActivitiesResponseObject
- type ListCameras200JSONResponse
- type ListCamerasRequestObject
- type ListCamerasResponseObject
- type ListEvents200JSONResponse
- type ListEventsParams
- type ListEventsRequestObject
- type ListEventsResponseObject
- type ListObjectReferences200JSONResponse
- type ListObjectReferences400JSONResponse
- type ListObjectReferencesRequestObject
- type ListObjectReferencesResponseObject
- type ListObjectSightings200JSONResponse
- type ListObjectSightings400JSONResponse
- type ListObjectSightingsParams
- type ListObjectSightingsRequestObject
- type ListObjectSightingsResponseObject
- type ListObjects200JSONResponse
- type ListObjectsRequestObject
- type ListObjectsResponseObject
- type ListPeople200JSONResponse
- type ListPeopleRequestObject
- type ListPeopleResponseObject
- type ListPersonEvents200JSONResponse
- type ListPersonEvents404JSONResponse
- type ListPersonEventsRequestObject
- type ListPersonEventsResponseObject
- type ListPersonFaces200JSONResponse
- type ListPersonFaces400JSONResponse
- type ListPersonFacesParams
- type ListPersonFacesRequestObject
- type ListPersonFacesResponseObject
- type ListSegments200JSONResponse
- type ListSegments404JSONResponse
- type ListSegmentsParams
- type ListSegmentsRequestObject
- type ListSegmentsResponseObject
- type ListTokens200JSONResponse
- type ListTokensRequestObject
- type ListTokensResponseObject
- type ListUnmatchedFaces200JSONResponse
- type ListUnmatchedFacesParams
- type ListUnmatchedFacesRequestObject
- type ListUnmatchedFacesResponseObject
- type ListZones200JSONResponse
- type ListZones404JSONResponse
- type ListZonesRequestObject
- type ListZonesResponseObject
- type Login200JSONResponse
- type Login401JSONResponse
- type Login429JSONResponse
- type LoginJSONRequestBody
- type LoginRequest
- type LoginRequestObject
- type LoginResponse
- type LoginResponseObject
- type Logout200JSONResponse
- type LogoutRequestObject
- type LogoutResponse
- type LogoutResponseObject
- type LogoutResponseStatus
- type MQTTPublisher
- type MergePeople200JSONResponse
- type MergePeople400JSONResponse
- type MergePeopleJSONRequestBody
- type MergePeopleRequest
- type MergePeopleRequestObject
- type MergePeopleResponseObject
- type MiddlewareFunc
- type ObjectListEnvelope
- type ObjectReference
- type ObjectSighting
- type PTZRequest
- type PTZRequestAction
- type PTZRequestDirection
- type Person
- type PersonDetail
- type PersonDetailFace
- type PersonEventListEnvelope
- type PersonListEnvelope
- type PostStorageCleanup200JSONResponse
- type PostStorageCleanup409Response
- type PostStorageCleanupRequestObject
- type PostStorageCleanupResponseObject
- type PostStorageDelete200JSONResponse
- type PostStorageDelete400Response
- type PostStorageDelete409Response
- type PostStorageDelete422Response
- type PostStorageDeleteJSONRequestBody
- type PostStorageDeleteParams
- type PostStorageDeleteRequestObject
- type PostStorageDeleteResponseObject
- type PostTalkbackOffer200JSONResponse
- type PostTalkbackOffer400JSONResponse
- type PostTalkbackOffer403JSONResponse
- type PostTalkbackOffer404JSONResponse
- type PostTalkbackOffer409JSONResponse
- type PostTalkbackOffer422JSONResponse
- type PostTalkbackOffer503JSONResponse
- type PostTalkbackOfferJSONRequestBody
- type PostTalkbackOfferRequestObject
- type PostTalkbackOfferResponseObject
- type PostWebRTCOffer200JSONResponse
- type PostWebRTCOffer400JSONResponse
- type PostWebRTCOffer404JSONResponse
- type PostWebRTCOfferJSONRequestBody
- type PostWebRTCOfferRequestObject
- type PostWebRTCOfferResponseObject
- type PressDoorbell202JSONResponse
- type PressDoorbell404JSONResponse
- type PressDoorbell503JSONResponse
- type PressDoorbellRequestObject
- type PressDoorbellResponseObject
- type ReadyCameraCheck
- type ReadyChecks
- type ReadyStorageCheck
- type RecompressionStats
- type RecordingCalendarResponse
- type RecordingSummaryCamera
- type RecordingSummaryCameraSegment
- type RecordingSummaryResponse
- type ReextractClip200JSONResponse
- type ReextractClip404JSONResponse
- type ReextractClipRequestObject
- type ReextractClipResponse
- type ReextractClipResponseObject
- type ReferenceListEnvelope
- type RequiredHeaderError
- type RequiredParamError
- type RestoreActivityEvidence200JSONResponse
- type RestoreActivityEvidence404JSONResponse
- type RestoreActivityEvidenceRequestObject
- type RestoreActivityEvidenceResponseObject
- type SDPAnswer
- type SDPOffer
- type SegmentInfo
- type SegmentListEnvelope
- type SendPTZCommand200JSONResponse
- type SendPTZCommand400JSONResponse
- type SendPTZCommand404JSONResponse
- type SendPTZCommandJSONRequestBody
- type SendPTZCommandRequestObject
- type SendPTZCommandResponseObject
- type ServeMux
- type Server
- func (s *Server) AddCameraManage(w http.ResponseWriter, r *http.Request)
- func (s *Server) AddObjectReference(w http.ResponseWriter, r *http.Request, id int64)
- func (s *Server) AnswerDoorbell(w http.ResponseWriter, r *http.Request, name string, eventID string)
- func (s *Server) AssignFace(w http.ResponseWriter, r *http.Request, id int64)
- func (s *Server) AssignPersonToEvent(w http.ResponseWriter, r *http.Request, id string)
- func (s *Server) BackfillFaces(w http.ResponseWriter, r *http.Request)
- func (s *Server) BroadcastActivitySSE(eventType string, activity storage.Activity)
- func (s *Server) BroadcastDoorbellPersonSSE(camera, eventID, person string)
- func (s *Server) BroadcastDoorbellSSE(camera, eventID, person string)
- func (s *Server) ChangePassword(w http.ResponseWriter, r *http.Request)
- func (s *Server) CheckForUpdates(w http.ResponseWriter, _ *http.Request)
- func (s *Server) CreateObject(w http.ResponseWriter, r *http.Request)
- func (s *Server) CreateObjectFromCameraTrack(w http.ResponseWriter, r *http.Request, cameraName string)
- func (s *Server) CreatePushSubscription(w http.ResponseWriter, r *http.Request)
- func (s *Server) CreateToken(w http.ResponseWriter, r *http.Request)
- func (s *Server) CreateZone(w http.ResponseWriter, r *http.Request, name string)
- func (s *Server) DeleteObject(w http.ResponseWriter, r *http.Request, id int64)
- func (s *Server) DeleteObjectReference(w http.ResponseWriter, r *http.Request, id int64)
- func (s *Server) DeletePerson(w http.ResponseWriter, r *http.Request, id int64)
- func (s *Server) DeletePushSubscription(w http.ResponseWriter, r *http.Request)
- func (s *Server) DeleteToken(w http.ResponseWriter, r *http.Request, id int64)
- func (s *Server) DeleteZone(w http.ResponseWriter, r *http.Request, name string, zone string)
- func (s *Server) DiscoverMQTTBrokers(w http.ResponseWriter, _ *http.Request)
- func (s *Server) DismissSighting(w http.ResponseWriter, r *http.Request, id int64)
- func (s *Server) DismissUpdate(w http.ResponseWriter, _ *http.Request)
- func (s *Server) ExcludeActivityEvidence(w http.ResponseWriter, r *http.Request, id string, eventID string)
- func (s *Server) ExportRecording(w http.ResponseWriter, r *http.Request, camera string, ...)
- func (s *Server) GetActivity(w http.ResponseWriter, r *http.Request, id string)
- func (s *Server) GetActivityCounts(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetAuthInfo(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetAuthMe(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetCamera(w http.ResponseWriter, r *http.Request, name string)
- func (s *Server) GetCameraPlayback(w http.ResponseWriter, r *http.Request, name string, ...)
- func (s *Server) GetCameraSnapshot(w http.ResponseWriter, r *http.Request, name string)
- func (s *Server) GetCameraThumbnail(w http.ResponseWriter, r *http.Request, name string, ...)
- func (s *Server) GetCameraTimeline(w http.ResponseWriter, r *http.Request, name string, ...)
- func (s *Server) GetDetectSettings(w http.ResponseWriter, _ *http.Request)
- func (s *Server) GetEvent(w http.ResponseWriter, r *http.Request, id string)
- func (s *Server) GetEventClip(w http.ResponseWriter, r *http.Request, id string)
- func (s *Server) GetEventCounts(w http.ResponseWriter, _ *http.Request, params GetEventCountsParams)
- func (s *Server) GetEventDetectionCrop(w http.ResponseWriter, r *http.Request, id string)
- func (s *Server) GetEventSnapshot(w http.ResponseWriter, r *http.Request, id string, ...)
- func (s *Server) GetEventStream(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetFaceCrop(w http.ResponseWriter, r *http.Request, id int64)
- func (s *Server) GetHealth(w http.ResponseWriter, _ *http.Request)
- func (s *Server) GetHealthLive(w http.ResponseWriter, _ *http.Request)
- func (s *Server) GetHealthReady(w http.ResponseWriter, _ *http.Request)
- func (s *Server) GetLiveHLS(w http.ResponseWriter, r *http.Request, name string)
- func (s *Server) GetLiveHLSInit(w http.ResponseWriter, r *http.Request, name string)
- func (s *Server) GetLiveHLSSegment(w http.ResponseWriter, r *http.Request, name string, segNum int64)
- func (s *Server) GetMJPEG(w http.ResponseWriter, r *http.Request, name string)
- func (s *Server) GetMQTTSettings(w http.ResponseWriter, _ *http.Request)
- func (s *Server) GetMSEWebSocket(w http.ResponseWriter, r *http.Request, name string)
- func (s *Server) GetMetrics(w http.ResponseWriter, _ *http.Request)
- func (s *Server) GetObjectCrop(w http.ResponseWriter, r *http.Request, id int64, params GetObjectCropParams)
- func (s *Server) GetOpenAPISpec(w http.ResponseWriter, _ *http.Request)
- func (s *Server) GetOpenH264Status(w http.ResponseWriter, _ *http.Request)
- func (s *Server) GetPerson(w http.ResponseWriter, r *http.Request, id int64)
- func (s *Server) GetPushPrefs(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetPushSnapshot(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetRecordingSettings(w http.ResponseWriter, _ *http.Request)
- func (s *Server) GetRecordingsCalendar(w http.ResponseWriter, r *http.Request, params GetRecordingsCalendarParams)
- func (s *Server) GetRecordingsSummary(w http.ResponseWriter, r *http.Request, params GetRecordingsSummaryParams)
- func (s *Server) GetSegment(w http.ResponseWriter, r *http.Request, name string, id int64)
- func (s *Server) GetSegmentHLS(w http.ResponseWriter, r *http.Request, name string, id int64, segNum int)
- func (s *Server) GetSegmentInit(w http.ResponseWriter, r *http.Request, name string, id int64)
- func (s *Server) GetStorage(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetStorageAudit(w http.ResponseWriter, r *http.Request, params GetStorageAuditParams)
- func (s *Server) GetStreamingCapabilities(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetSystem(w http.ResponseWriter, _ *http.Request)
- func (s *Server) GetTalkbackCapabilities(w http.ResponseWriter, r *http.Request, name string)
- func (s *Server) GetUpdateStatus(w http.ResponseWriter, _ *http.Request)
- func (s *Server) GetVAPIDPublicKey(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetWebRTCICEServers(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetZonePresence(w http.ResponseWriter, r *http.Request, name string, zone string)
- func (s *Server) IdentifyEvent(w http.ResponseWriter, r *http.Request, id string)
- func (s *Server) IgnoreFace(w http.ResponseWriter, r *http.Request, id int64)
- func (s *Server) InstallOpenH264(w http.ResponseWriter, r *http.Request)
- func (s *Server) ListActivities(w http.ResponseWriter, r *http.Request, params ListActivitiesParams)
- func (s *Server) ListCameras(w http.ResponseWriter, _ *http.Request)
- func (s *Server) ListCamerasManage(w http.ResponseWriter, _ *http.Request)
- func (s *Server) ListEvents(w http.ResponseWriter, r *http.Request, params ListEventsParams)
- func (s *Server) ListObjectReferences(w http.ResponseWriter, r *http.Request, id int64)
- func (s *Server) ListObjectSightings(w http.ResponseWriter, r *http.Request, id int64, ...)
- func (s *Server) ListObjects(w http.ResponseWriter, r *http.Request)
- func (s *Server) ListPeople(w http.ResponseWriter, r *http.Request)
- func (s *Server) ListPersonEvents(w http.ResponseWriter, r *http.Request, id int64)
- func (s *Server) ListPersonFaces(w http.ResponseWriter, r *http.Request, id int64, params ListPersonFacesParams)
- func (s *Server) ListPushSubscriptions(w http.ResponseWriter, r *http.Request)
- func (s *Server) ListSegments(w http.ResponseWriter, r *http.Request, camera string, ...)
- func (s *Server) ListTokens(w http.ResponseWriter, r *http.Request)
- func (s *Server) ListUnmatchedFaces(w http.ResponseWriter, r *http.Request, params ListUnmatchedFacesParams)
- func (s *Server) ListZones(w http.ResponseWriter, r *http.Request, name string)
- func (s *Server) Login(w http.ResponseWriter, r *http.Request)
- func (s *Server) Logout(w http.ResponseWriter, r *http.Request)
- func (s *Server) MergePeople(w http.ResponseWriter, r *http.Request)
- func (s *Server) PostStorageCleanup(w http.ResponseWriter, r *http.Request)
- func (s *Server) PostStorageDelete(w http.ResponseWriter, r *http.Request, params PostStorageDeleteParams)
- func (s *Server) PostTalkbackOffer(w http.ResponseWriter, r *http.Request, name string)
- func (s *Server) PostWebRTCOffer(w http.ResponseWriter, r *http.Request, name string)
- func (s *Server) PressDoorbell(w http.ResponseWriter, r *http.Request, name string)
- func (s *Server) PublishDetection(frame camera.DetectionFrame)
- func (s *Server) PutPushPrefs(w http.ResponseWriter, r *http.Request)
- func (s *Server) RecordDoorbellPress(camera string)
- func (s *Server) ReextractClip(w http.ResponseWriter, r *http.Request, id string)
- func (s *Server) RemoveCameraManage(w http.ResponseWriter, r *http.Request)
- func (s *Server) RestoreActivityEvidence(w http.ResponseWriter, r *http.Request, id string, eventID string)
- func (s *Server) SendPTZCommand(w http.ResponseWriter, r *http.Request, name string)
- func (s *Server) SetCameraNames(names []string)
- func (s *Server) SetConfigPath(path string)
- func (s *Server) SetContext(ctx context.Context)
- func (s *Server) SetDetector(d *detect.Detector)
- func (s *Server) SetMQTT(publisher MQTTPublisher)
- func (s *Server) SetMQTTConfig(cfg config.MQTTConfig)
- func (s *Server) SetMQTTEnabled(enabled bool)
- func (s *Server) SetNotifier(n *notify.NotificationDispatcher)
- func (s *Server) SetObjectThumbnail(w http.ResponseWriter, r *http.Request, id int64)
- func (s *Server) SetRTSPServerConfig(cfg config.RTSPServerConfig)
- func (s *Server) SetRecordingConfig(cfg config.RecordingConfig)
- func (s *Server) SetSubsystems(cameras *camera.Manager, recorder *recording.Recorder, hub *rtsp.Hub, ...)
- func (s *Server) SetTracingEnabled(enabled bool)
- func (s *Server) SetUpdateChecker(checker *update.Checker)
- func (s *Server) SetVersion(v string)
- func (s *Server) Shutdown(ctx context.Context) error
- func (s *Server) Start() error
- func (s *Server) StartCamera(w http.ResponseWriter, r *http.Request, name string)
- func (s *Server) StopCamera(w http.ResponseWriter, r *http.Request, name string)
- func (s *Server) StreamCameraDetections(w http.ResponseWriter, r *http.Request)
- func (s *Server) TestMQTTConnection(w http.ResponseWriter, r *http.Request)
- func (s *Server) TestPush(w http.ResponseWriter, r *http.Request)
- func (s *Server) TestRTSPConnection(w http.ResponseWriter, r *http.Request)
- func (s *Server) TrackPerson(w http.ResponseWriter, r *http.Request, id string)
- func (s *Server) TransitionToFull(authChecker *auth.Checker)
- func (s *Server) TriggerRecompression(w http.ResponseWriter, r *http.Request)
- func (s *Server) UpdateCameraManage(w http.ResponseWriter, r *http.Request)
- func (s *Server) UpdateDetectSettings(w http.ResponseWriter, r *http.Request)
- func (s *Server) UpdateMQTTSettings(w http.ResponseWriter, r *http.Request)
- func (s *Server) UpdateObject(w http.ResponseWriter, r *http.Request, id int64)
- func (s *Server) UpdatePerson(w http.ResponseWriter, r *http.Request, id int64)
- func (s *Server) UpdateRecordingSettings(w http.ResponseWriter, r *http.Request)
- func (s *Server) UpdateZone(w http.ResponseWriter, r *http.Request, name string, zone string)
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) AddObjectReference(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AnswerDoorbell(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AssignFace(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AssignPersonToEvent(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) BackfillFaces(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ChangePassword(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateObject(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateObjectFromCameraTrack(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateToken(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateZone(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteObject(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteObjectReference(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeletePerson(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteToken(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteZone(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DismissSighting(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ExcludeActivityEvidence(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ExportRecording(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetActivity(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetActivityCounts(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetAuthMe(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetCamera(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetCameraPlayback(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetCameraSnapshot(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetCameraThumbnail(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetCameraTimeline(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetEvent(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetEventClip(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetEventCounts(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetEventDetectionCrop(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetEventSnapshot(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetEventStream(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetFaceCrop(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetHealth(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetHealthLive(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetHealthReady(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetLiveHLS(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetLiveHLSInit(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetLiveHLSSegment(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetMJPEG(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetMSEWebSocket(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetMetrics(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetObjectCrop(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetOpenAPISpec(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetPerson(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetRecordingsCalendar(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetRecordingsSummary(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSegment(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSegmentHLS(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSegmentInit(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetStorage(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetStorageAudit(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetStreamingCapabilities(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSystem(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetTalkbackCapabilities(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetZonePresence(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) IdentifyEvent(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) IgnoreFace(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListActivities(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListCameras(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListEvents(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListObjectReferences(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListObjectSightings(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListObjects(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListPeople(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListPersonEvents(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListPersonFaces(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListSegments(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListTokens(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListUnmatchedFaces(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListZones(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) Login(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) Logout(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) MergePeople(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PostStorageCleanup(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PostStorageDelete(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PostTalkbackOffer(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PostWebRTCOffer(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PressDoorbell(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ReextractClip(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) RestoreActivityEvidence(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) SendPTZCommand(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) SetObjectThumbnail(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) StartCamera(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) StopCamera(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) TrackPerson(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) TriggerRecompression(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateObject(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdatePerson(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateZone(w http.ResponseWriter, r *http.Request)
- type SetObjectThumbnail200JSONResponse
- type SetObjectThumbnail400JSONResponse
- type SetObjectThumbnail404JSONResponse
- type SetObjectThumbnailJSONRequestBody
- type SetObjectThumbnailRequest
- type SetObjectThumbnailRequestObject
- type SetObjectThumbnailResponse
- type SetObjectThumbnailResponseObject
- type SetupHandler
- func (h *SetupHandler) AdminConfigured() bool
- func (h *SetupHandler) HandleAddCameras(w http.ResponseWriter, r *http.Request)
- func (h *SetupHandler) HandleComplete(w http.ResponseWriter, _ *http.Request)
- func (h *SetupHandler) HandleDiscover(w http.ResponseWriter, _ *http.Request)
- func (h *SetupHandler) HandleInstallOpenH264(w http.ResponseWriter, r *http.Request)
- func (h *SetupHandler) HandleOpenH264Status(w http.ResponseWriter, _ *http.Request)
- func (h *SetupHandler) HandleProbe(w http.ResponseWriter, r *http.Request)
- func (h *SetupHandler) HandleSetup(w http.ResponseWriter, r *http.Request)
- func (h *SetupHandler) HandleTestRTSP(w http.ResponseWriter, r *http.Request)
- func (h *SetupHandler) HandleThumbnail(w http.ResponseWriter, r *http.Request)
- type SightingListEnvelope
- type StartCamera200JSONResponse
- type StartCamera404JSONResponse
- type StartCamera409JSONResponse
- type StartCameraRequestObject
- type StartCameraResponseObject
- type StatusDeleted
- type StatusDeletedStatus
- type StatusDismissed
- type StatusDismissedStatus
- type StatusIgnored
- type StatusIgnoredStatus
- type StatusMerged
- type StatusMergedStatus
- type StatusOk
- type StatusOkStatus
- type StatusUpdated
- type StatusUpdatedStatus
- type StdHTTPServerOptions
- type StopCamera200JSONResponse
- type StopCamera404JSONResponse
- type StopCamera409JSONResponse
- type StopCameraRequestObject
- type StopCameraResponseObject
- type StorageAuditEntry
- type StorageBreakdown
- type StorageHealthCheck
- type StreamingCapabilities
- type StrictHTTPServerOptions
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type SystemResponse
- type TalkbackCapabilities
- type TalkbackCapabilitiesCodec
- type TimelineActivity
- type TimelineEvent
- type TimelineResponse
- type TimelineSegment
- type TokenListItem
- type TokenListResponse
- type TokenRevokedResponse
- type TokenRevokedResponseStatus
- type TooManyValuesForParamError
- type TrackPerson201JSONResponse
- type TrackPerson400JSONResponse
- type TrackPerson404JSONResponse
- type TrackPersonJSONRequestBody
- type TrackPersonRequest
- type TrackPersonRequestObject
- type TrackPersonResponse
- type TrackPersonResponseMethod
- type TrackPersonResponseObject
- type TriggerRecompression202Response
- type TriggerRecompression409TextResponse
- type TriggerRecompressionRequestObject
- type TriggerRecompressionResponseObject
- type UnescapedCookieParamError
- type UnmarshalingParamError
- type UpdateObject200JSONResponse
- type UpdateObject400JSONResponse
- type UpdateObjectJSONRequestBody
- type UpdateObjectRequest
- type UpdateObjectRequestObject
- type UpdateObjectResponseObject
- type UpdatePerson200JSONResponse
- type UpdatePerson400JSONResponse
- type UpdatePersonJSONRequestBody
- type UpdatePersonRequest
- type UpdatePersonRequestObject
- type UpdatePersonResponseObject
- type UpdateZone200JSONResponse
- type UpdateZone400JSONResponse
- type UpdateZone404JSONResponse
- type UpdateZoneJSONRequestBody
- type UpdateZoneRequestObject
- type UpdateZoneResponseObject
- type Zone
- type ZoneListEnvelope
- type ZonePresence
Constants ¶
const ( BearerAuthScopes = "bearerAuth.Scopes" CookieAuthScopes = "cookieAuth.Scopes" )
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func Handler ¶
func Handler(si ServerInterface) http.Handler
Handler creates http.Handler with routing matching OpenAPI spec.
func HandlerFromMux ¶
func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
func HandlerFromMuxWithBaseURL ¶
func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler
func HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
func PathToRawSpec ¶
Constructs a synthetic filesystem for resolving external references when loading openapi specifications.
Types ¶
type Activity ¶
type Activity struct {
Camera string `json:"camera"`
Category ActivityCategory `json:"category"`
// ClosesAt Earliest time the activity may finalize if no new evidence arrives.
ClosesAt time.Time `json:"closes_at"`
DurationSeconds int64 `json:"duration_seconds"`
EndTime time.Time `json:"end_time"`
EventCount int `json:"event_count"`
// Events Ordered supporting evidence; present on detail responses.
Events *[]Event `json:"events,omitempty"`
// ExcludedEvidence Active operator exclusions; raw events remain available and can be restored.
ExcludedEvidence *[]ActivityEvidenceCorrection `json:"excluded_evidence,omitempty"`
FinalizedAt *time.Time `json:"finalized_at,omitempty"`
Grouping ActivityGrouping `json:"grouping"`
HasDoorbell bool `json:"has_doorbell"`
Id string `json:"id"`
Labels []string `json:"labels"`
MissedDoorbell bool `json:"missed_doorbell"`
PrimaryEvent Event `json:"primary_event"`
RecognizedNames []string `json:"recognized_names"`
StartTime time.Time `json:"start_time"`
State ActivityState `json:"state"`
UpdatedAt time.Time `json:"updated_at"`
Zones []string `json:"zones"`
}
Activity defines model for Activity.
type ActivityCategory ¶
type ActivityCategory string
ActivityCategory defines model for Activity.Category.
const ( ActivityCategoryAlert ActivityCategory = "alert" ActivityCategoryDetection ActivityCategory = "detection" )
Defines values for ActivityCategory.
func (ActivityCategory) Valid ¶
func (e ActivityCategory) Valid() bool
Valid indicates whether the value is a known member of the ActivityCategory enum.
type ActivityCounts ¶
type ActivityCounts struct {
// Finalized Activities whose quiet period has elapsed.
Finalized int `json:"finalized"`
// Open Activities still collecting nearby evidence.
Open int `json:"open"`
// Today Number of activities overlapping today in the server's local time zone.
Today int `json:"today"`
Total int `json:"total"`
}
ActivityCounts defines model for ActivityCounts.
type ActivityEvidenceCorrection ¶
type ActivityEvidenceCorrection struct {
Action ActivityEvidenceCorrectionAction `json:"action"`
Actor string `json:"actor"`
CreatedAt time.Time `json:"created_at"`
Event Event `json:"event"`
Reason *string `json:"reason,omitempty"`
}
ActivityEvidenceCorrection defines model for ActivityEvidenceCorrection.
type ActivityEvidenceCorrectionAction ¶
type ActivityEvidenceCorrectionAction string
ActivityEvidenceCorrectionAction defines model for ActivityEvidenceCorrection.Action.
const (
Excluded ActivityEvidenceCorrectionAction = "excluded"
)
Defines values for ActivityEvidenceCorrectionAction.
func (ActivityEvidenceCorrectionAction) Valid ¶
func (e ActivityEvidenceCorrectionAction) Valid() bool
Valid indicates whether the value is a known member of the ActivityEvidenceCorrectionAction enum.
type ActivityEvidenceCorrectionRequest ¶
type ActivityEvidenceCorrectionRequest struct {
Reason *string `json:"reason,omitempty"`
}
ActivityEvidenceCorrectionRequest defines model for ActivityEvidenceCorrectionRequest.
type ActivityGrouping ¶
type ActivityGrouping struct {
Explanation string `json:"explanation"`
QuietPeriodSeconds int64 `json:"quiet_period_seconds"`
Strategy ActivityGroupingStrategy `json:"strategy"`
}
ActivityGrouping defines model for ActivityGrouping.
type ActivityGroupingStrategy ¶
type ActivityGroupingStrategy string
ActivityGroupingStrategy defines model for ActivityGrouping.Strategy.
const (
CameraLocalQuietPeriod ActivityGroupingStrategy = "camera_local_quiet_period"
)
Defines values for ActivityGroupingStrategy.
func (ActivityGroupingStrategy) Valid ¶
func (e ActivityGroupingStrategy) Valid() bool
Valid indicates whether the value is a known member of the ActivityGroupingStrategy enum.
type ActivityListEnvelope ¶
type ActivityListEnvelope struct {
HasMore bool `json:"has_more"`
Items []Activity `json:"items"`
Limit int `json:"limit"`
Offset int `json:"offset"`
Total int `json:"total"`
}
ActivityListEnvelope defines model for ActivityListEnvelope.
type ActivityState ¶
type ActivityState string
ActivityState defines model for Activity.State.
const ( ActivityStateFinalized ActivityState = "finalized" ActivityStateOpen ActivityState = "open" )
Defines values for ActivityState.
func (ActivityState) Valid ¶
func (e ActivityState) Valid() bool
Valid indicates whether the value is a known member of the ActivityState enum.
type AddObjectReference201JSONResponse ¶
type AddObjectReference201JSONResponse AddObjectReferenceResponse
func (AddObjectReference201JSONResponse) VisitAddObjectReferenceResponse ¶
func (response AddObjectReference201JSONResponse) VisitAddObjectReferenceResponse(w http.ResponseWriter) error
type AddObjectReference400JSONResponse ¶
type AddObjectReference400JSONResponse Error
func (AddObjectReference400JSONResponse) VisitAddObjectReferenceResponse ¶
func (response AddObjectReference400JSONResponse) VisitAddObjectReferenceResponse(w http.ResponseWriter) error
type AddObjectReference404JSONResponse ¶
type AddObjectReference404JSONResponse Error
func (AddObjectReference404JSONResponse) VisitAddObjectReferenceResponse ¶
func (response AddObjectReference404JSONResponse) VisitAddObjectReferenceResponse(w http.ResponseWriter) error
type AddObjectReference503JSONResponse ¶
type AddObjectReference503JSONResponse Error
func (AddObjectReference503JSONResponse) VisitAddObjectReferenceResponse ¶
func (response AddObjectReference503JSONResponse) VisitAddObjectReferenceResponse(w http.ResponseWriter) error
type AddObjectReferenceJSONRequestBody ¶
type AddObjectReferenceJSONRequestBody = AddObjectReferenceRequest
AddObjectReferenceJSONRequestBody defines body for AddObjectReference for application/json ContentType.
type AddObjectReferenceRequest ¶
type AddObjectReferenceRequest struct {
EventId string `json:"event_id"`
}
AddObjectReferenceRequest defines model for AddObjectReferenceRequest.
type AddObjectReferenceRequestObject ¶
type AddObjectReferenceRequestObject struct {
Id int64 `json:"id"`
Body *AddObjectReferenceJSONRequestBody
}
type AddObjectReferenceResponse ¶
type AddObjectReferenceResponse struct {
CropPath *string `json:"crop_path,omitempty"`
Id int64 `json:"id"`
ObjectId int64 `json:"object_id"`
}
AddObjectReferenceResponse defines model for AddObjectReferenceResponse.
type AddObjectReferenceResponseObject ¶
type AddObjectReferenceResponseObject interface {
VisitAddObjectReferenceResponse(w http.ResponseWriter) error
}
type AnswerDoorbell200JSONResponse ¶
type AnswerDoorbell200JSONResponse DoorbellAnswerResponse
func (AnswerDoorbell200JSONResponse) VisitAnswerDoorbellResponse ¶
func (response AnswerDoorbell200JSONResponse) VisitAnswerDoorbellResponse(w http.ResponseWriter) error
type AnswerDoorbell404JSONResponse ¶
type AnswerDoorbell404JSONResponse Error
func (AnswerDoorbell404JSONResponse) VisitAnswerDoorbellResponse ¶
func (response AnswerDoorbell404JSONResponse) VisitAnswerDoorbellResponse(w http.ResponseWriter) error
type AnswerDoorbellResponseObject ¶
type AnswerDoorbellResponseObject interface {
VisitAnswerDoorbellResponse(w http.ResponseWriter) error
}
type AssignFace200JSONResponse ¶
type AssignFace200JSONResponse AssignFaceResponse
func (AssignFace200JSONResponse) VisitAssignFaceResponse ¶
func (response AssignFace200JSONResponse) VisitAssignFaceResponse(w http.ResponseWriter) error
type AssignFace400JSONResponse ¶
type AssignFace400JSONResponse Error
func (AssignFace400JSONResponse) VisitAssignFaceResponse ¶
func (response AssignFace400JSONResponse) VisitAssignFaceResponse(w http.ResponseWriter) error
type AssignFaceJSONRequestBody ¶
type AssignFaceJSONRequestBody = AssignFaceRequest
AssignFaceJSONRequestBody defines body for AssignFace for application/json ContentType.
type AssignFaceRequest ¶
type AssignFaceRequest struct {
Name *string `json:"name,omitempty"`
PersonId *int64 `json:"person_id,omitempty"`
}
AssignFaceRequest defines model for AssignFaceRequest.
type AssignFaceRequestObject ¶
type AssignFaceRequestObject struct {
Id int64 `json:"id"`
Body *AssignFaceJSONRequestBody
}
type AssignFaceResponse ¶
type AssignFaceResponse struct {
PersonId int64 `json:"person_id"`
Status AssignFaceResponseStatus `json:"status"`
}
AssignFaceResponse defines model for AssignFaceResponse.
type AssignFaceResponseObject ¶
type AssignFaceResponseObject interface {
VisitAssignFaceResponse(w http.ResponseWriter) error
}
type AssignFaceResponseStatus ¶
type AssignFaceResponseStatus string
AssignFaceResponseStatus defines model for AssignFaceResponse.Status.
const (
Assigned AssignFaceResponseStatus = "assigned"
)
Defines values for AssignFaceResponseStatus.
func (AssignFaceResponseStatus) Valid ¶
func (e AssignFaceResponseStatus) Valid() bool
Valid indicates whether the value is a known member of the AssignFaceResponseStatus enum.
type AssignPersonRequest ¶
type AssignPersonRequest struct {
Ignore *bool `json:"ignore,omitempty"`
PersonId *int64 `json:"person_id,omitempty"`
}
AssignPersonRequest defines model for AssignPersonRequest.
type AssignPersonResponse ¶
type AssignPersonResponse struct {
Name *string `json:"name,omitempty"`
PersonId *int64 `json:"person_id,omitempty"`
Status string `json:"status"`
}
AssignPersonResponse defines model for AssignPersonResponse.
type AssignPersonToEvent200JSONResponse ¶
type AssignPersonToEvent200JSONResponse AssignPersonResponse
func (AssignPersonToEvent200JSONResponse) VisitAssignPersonToEventResponse ¶
func (response AssignPersonToEvent200JSONResponse) VisitAssignPersonToEventResponse(w http.ResponseWriter) error
type AssignPersonToEvent400JSONResponse ¶
type AssignPersonToEvent400JSONResponse Error
func (AssignPersonToEvent400JSONResponse) VisitAssignPersonToEventResponse ¶
func (response AssignPersonToEvent400JSONResponse) VisitAssignPersonToEventResponse(w http.ResponseWriter) error
type AssignPersonToEvent404JSONResponse ¶
type AssignPersonToEvent404JSONResponse Error
func (AssignPersonToEvent404JSONResponse) VisitAssignPersonToEventResponse ¶
func (response AssignPersonToEvent404JSONResponse) VisitAssignPersonToEventResponse(w http.ResponseWriter) error
type AssignPersonToEventJSONRequestBody ¶
type AssignPersonToEventJSONRequestBody = AssignPersonRequest
AssignPersonToEventJSONRequestBody defines body for AssignPersonToEvent for application/json ContentType.
type AssignPersonToEventRequestObject ¶
type AssignPersonToEventRequestObject struct {
Id string `json:"id"`
Body *AssignPersonToEventJSONRequestBody
}
type AssignPersonToEventResponseObject ¶
type AssignPersonToEventResponseObject interface {
VisitAssignPersonToEventResponse(w http.ResponseWriter) error
}
type AuthMeResponse ¶
type AuthMeResponse struct {
CsrfToken *string `json:"csrf_token,omitempty"`
ExpiresAt *time.Time `json:"expires_at,omitempty"`
Kind string `json:"kind"`
Scopes []string `json:"scopes"`
Username string `json:"username"`
}
AuthMeResponse defines model for AuthMeResponse.
type BackfillFaces200ApplicationxNdjsonResponse ¶
func (BackfillFaces200ApplicationxNdjsonResponse) VisitBackfillFacesResponse ¶
func (response BackfillFaces200ApplicationxNdjsonResponse) VisitBackfillFacesResponse(w http.ResponseWriter) error
type BackfillFacesRequestObject ¶
type BackfillFacesRequestObject struct {
}
type BackfillFacesResponseObject ¶
type BackfillFacesResponseObject interface {
VisitBackfillFacesResponse(w http.ResponseWriter) error
}
type CameraBreakdown ¶
type CameraBreakdown struct {
ClipBytes *int64 `json:"clip_bytes,omitempty"`
EffectiveRetainDays *int `json:"effective_retain_days,omitempty"`
Last7dBytes *int64 `json:"last_7d_bytes,omitempty"`
Name *string `json:"name,omitempty"`
OldestSegment *time.Time `json:"oldest_segment,omitempty"`
PerDay *[]struct {
Bytes *int64 `json:"bytes,omitempty"`
Date *string `json:"date,omitempty"`
} `json:"per_day,omitempty"`
SegmentBytes *int64 `json:"segment_bytes,omitempty"`
}
CameraBreakdown defines model for CameraBreakdown.
type CameraDetail ¶
type CameraDetail struct {
Degraded bool `json:"degraded"`
DegradedReason *string `json:"degraded_reason,omitempty"`
HasMotion bool `json:"has_motion"`
// LastConnected Time of the camera's last successful RTSP connection. Absent when it has not connected since Vedetta started; absent is not the same as old, and must not be rendered as an age. For an on-demand camera this is the only signal separating one napping between events from one that has been unplugged or removed from its bridge, since both report the stream as unpublished indefinitely.
LastConnected *time.Time `json:"last_connected,omitempty"`
LastFrame *time.Time `json:"last_frame,omitempty"`
// LastSeen Time of the last-known frame available for this camera, including a cached snapshot restored after restart. Absent when the camera has never produced a frame.
LastSeen *time.Time `json:"last_seen,omitempty"`
Name string `json:"name"`
Online bool `json:"online"`
Ptz bool `json:"ptz"`
Recording bool `json:"recording"`
// Sleeping True when an on-demand camera is resting between events. See CameraInfo.sleeping.
Sleeping bool `json:"sleeping"`
// SourceFps Rolling-window source frame rate measured at the detect consumer (frames per second).
SourceFps *float32 `json:"source_fps,omitempty"`
// StreamError Reason the camera's RTSP source cannot connect, with credentials redacted. Present only when the source has failed repeatedly for a reason other than its stream not being published, so it is absent both while the camera is connected and while an on-demand camera is resting between events.
StreamError *string `json:"stream_error,omitempty"`
ZoneCount int `json:"zone_count"`
}
CameraDetail defines model for CameraDetail.
type CameraHealthCheck ¶
type CameraHealthCheck struct {
Online int `json:"online"`
// Sleeping Count of on-demand cameras resting between events. These are also excluded from online, so total minus online minus sleeping is the number of cameras genuinely unreachable.
Sleeping int `json:"sleeping"`
Total int `json:"total"`
}
CameraHealthCheck defines model for CameraHealthCheck.
type CameraInfo ¶
type CameraInfo struct {
HasMotion bool `json:"has_motion"`
// LastSeen Timestamp of the last-known frame still available to display (live decode time, or the cached disk snapshot after a restart). Omitted for a camera that has never produced a frame. Used by the dashboard to caption offline tiles.
LastSeen *time.Time `json:"last_seen,omitempty"`
Name string `json:"name"`
Online bool `json:"online"`
Ptz bool `json:"ptz"`
// Sleeping True when an on-demand camera (a battery or PIR-triggered model configured with on_demand) is resting between events. Such a camera also reports online=false, because no frames are arriving, but it is not a fault. A camera with online=false and sleeping=false is a genuine outage. Always false for a mains-powered camera, and always false while the camera is stopped. Also false when the camera's RTSP source is failing for a reason other than its stream not being published (refused connection, rejected credentials, timeout): that delivers no frames just as sleep does, but it is an outage, and stream_error on the camera detail carries the reason.
Sleeping bool `json:"sleeping"`
// Stopped True when an operator has stopped the camera. A stopped camera also reports online=false and never reports sleeping=true, so the four states (stopped, online, sleeping, down) are mutually exclusive.
Stopped bool `json:"stopped"`
}
CameraInfo defines model for CameraInfo.
type CameraListEnvelope ¶
type CameraListEnvelope struct {
HasMore bool `json:"has_more"`
Items []CameraInfo `json:"items"`
Limit int `json:"limit"`
Offset int `json:"offset"`
Total int `json:"total"`
}
CameraListEnvelope defines model for CameraListEnvelope.
type CameraStatus ¶
type CameraStatus struct {
Degraded bool `json:"degraded"`
DegradedReason *string `json:"degraded_reason,omitempty"`
HasMotion bool `json:"has_motion"`
LastFrame *time.Time `json:"last_frame,omitempty"`
Name string `json:"name"`
Online bool `json:"online"`
Ptz bool `json:"ptz"`
// Sleeping True when an on-demand camera is resting between events. See CameraInfo.sleeping.
Sleeping bool `json:"sleeping"`
Stopped bool `json:"stopped"`
}
CameraStatus defines model for CameraStatus.
type CameraStreamCapabilities ¶
type CameraStreamCapabilities struct {
Name string `json:"name"`
// Streams Consumable stream URLs by protocol. RTSP URLs are absolute (host taken from the request); HTTP entries are paths relative to the API base. A field is omitted when that protocol is unavailable for the camera (e.g. rtsp_main/rtsp_sub absent when rtsp_server is disabled, rtsp_sub absent when the camera has no distinct sub-stream).
Streams CameraStreamURLs `json:"streams"`
}
CameraStreamCapabilities defines model for CameraStreamCapabilities.
type CameraStreamURLs ¶
type CameraStreamURLs struct {
Hls *string `json:"hls,omitempty"`
Mjpeg *string `json:"mjpeg,omitempty"`
Mse *string `json:"mse,omitempty"`
RtspMain *string `json:"rtsp_main,omitempty"`
RtspSub *string `json:"rtsp_sub,omitempty"`
Snapshot *string `json:"snapshot,omitempty"`
Webrtc *string `json:"webrtc,omitempty"`
}
CameraStreamURLs Consumable stream URLs by protocol. RTSP URLs are absolute (host taken from the request); HTTP entries are paths relative to the API base. A field is omitted when that protocol is unavailable for the camera (e.g. rtsp_main/rtsp_sub absent when rtsp_server is disabled, rtsp_sub absent when the camera has no distinct sub-stream).
type ChangePassword200JSONResponse ¶
type ChangePassword200JSONResponse StatusOk
func (ChangePassword200JSONResponse) VisitChangePasswordResponse ¶
func (response ChangePassword200JSONResponse) VisitChangePasswordResponse(w http.ResponseWriter) error
type ChangePassword400JSONResponse ¶
type ChangePassword400JSONResponse Error
func (ChangePassword400JSONResponse) VisitChangePasswordResponse ¶
func (response ChangePassword400JSONResponse) VisitChangePasswordResponse(w http.ResponseWriter) error
type ChangePasswordJSONRequestBody ¶
type ChangePasswordJSONRequestBody = ChangePasswordRequest
ChangePasswordJSONRequestBody defines body for ChangePassword for application/json ContentType.
type ChangePasswordRequest ¶
type ChangePasswordRequest struct {
CurrentPassword string `json:"current_password"`
NewPassword string `json:"new_password"`
}
ChangePasswordRequest defines model for ChangePasswordRequest.
type ChangePasswordRequestObject ¶
type ChangePasswordRequestObject struct {
Body *ChangePasswordJSONRequestBody
}
type ChangePasswordResponseObject ¶
type ChangePasswordResponseObject interface {
VisitChangePasswordResponse(w http.ResponseWriter) error
}
type CreateObject201JSONResponse ¶
type CreateObject201JSONResponse KnownObject
func (CreateObject201JSONResponse) VisitCreateObjectResponse ¶
func (response CreateObject201JSONResponse) VisitCreateObjectResponse(w http.ResponseWriter) error
type CreateObject400JSONResponse ¶
type CreateObject400JSONResponse Error
func (CreateObject400JSONResponse) VisitCreateObjectResponse ¶
func (response CreateObject400JSONResponse) VisitCreateObjectResponse(w http.ResponseWriter) error
type CreateObject404JSONResponse ¶
type CreateObject404JSONResponse Error
func (CreateObject404JSONResponse) VisitCreateObjectResponse ¶
func (response CreateObject404JSONResponse) VisitCreateObjectResponse(w http.ResponseWriter) error
type CreateObject503JSONResponse ¶
type CreateObject503JSONResponse Error
func (CreateObject503JSONResponse) VisitCreateObjectResponse ¶
func (response CreateObject503JSONResponse) VisitCreateObjectResponse(w http.ResponseWriter) error
type CreateObjectFromCameraTrack201JSONResponse ¶
type CreateObjectFromCameraTrack201JSONResponse KnownObject
func (CreateObjectFromCameraTrack201JSONResponse) VisitCreateObjectFromCameraTrackResponse ¶
func (response CreateObjectFromCameraTrack201JSONResponse) VisitCreateObjectFromCameraTrackResponse(w http.ResponseWriter) error
type CreateObjectFromCameraTrack400JSONResponse ¶
type CreateObjectFromCameraTrack400JSONResponse Error
func (CreateObjectFromCameraTrack400JSONResponse) VisitCreateObjectFromCameraTrackResponse ¶
func (response CreateObjectFromCameraTrack400JSONResponse) VisitCreateObjectFromCameraTrackResponse(w http.ResponseWriter) error
type CreateObjectFromCameraTrack404JSONResponse ¶
type CreateObjectFromCameraTrack404JSONResponse Error
func (CreateObjectFromCameraTrack404JSONResponse) VisitCreateObjectFromCameraTrackResponse ¶
func (response CreateObjectFromCameraTrack404JSONResponse) VisitCreateObjectFromCameraTrackResponse(w http.ResponseWriter) error
type CreateObjectFromCameraTrack503JSONResponse ¶
type CreateObjectFromCameraTrack503JSONResponse Error
func (CreateObjectFromCameraTrack503JSONResponse) VisitCreateObjectFromCameraTrackResponse ¶
func (response CreateObjectFromCameraTrack503JSONResponse) VisitCreateObjectFromCameraTrackResponse(w http.ResponseWriter) error
type CreateObjectFromCameraTrackJSONRequestBody ¶
type CreateObjectFromCameraTrackJSONRequestBody = CreateObjectFromTrackRequest
CreateObjectFromCameraTrackJSONRequestBody defines body for CreateObjectFromCameraTrack for application/json ContentType.
type CreateObjectFromCameraTrackRequestObject ¶
type CreateObjectFromCameraTrackRequestObject struct {
Name string `json:"name"`
Body *CreateObjectFromCameraTrackJSONRequestBody
}
type CreateObjectFromCameraTrackResponseObject ¶
type CreateObjectFromCameraTrackResponseObject interface {
VisitCreateObjectFromCameraTrackResponse(w http.ResponseWriter) error
}
type CreateObjectFromTrackRequest ¶
type CreateObjectFromTrackRequest struct {
Label string `json:"label"`
Name string `json:"name"`
TrackId int `json:"track_id"`
X1 float32 `json:"x1"`
X2 float32 `json:"x2"`
Y1 float32 `json:"y1"`
Y2 float32 `json:"y2"`
}
CreateObjectFromTrackRequest defines model for CreateObjectFromTrackRequest.
type CreateObjectJSONRequestBody ¶
type CreateObjectJSONRequestBody = CreateObjectRequest
CreateObjectJSONRequestBody defines body for CreateObject for application/json ContentType.
type CreateObjectRequest ¶
CreateObjectRequest defines model for CreateObjectRequest.
type CreateObjectRequestObject ¶
type CreateObjectRequestObject struct {
Body *CreateObjectJSONRequestBody
}
type CreateObjectResponseObject ¶
type CreateObjectResponseObject interface {
VisitCreateObjectResponse(w http.ResponseWriter) error
}
type CreateToken201JSONResponse ¶
type CreateToken201JSONResponse CreateTokenResponse
func (CreateToken201JSONResponse) VisitCreateTokenResponse ¶
func (response CreateToken201JSONResponse) VisitCreateTokenResponse(w http.ResponseWriter) error
type CreateToken400JSONResponse ¶
type CreateToken400JSONResponse Error
func (CreateToken400JSONResponse) VisitCreateTokenResponse ¶
func (response CreateToken400JSONResponse) VisitCreateTokenResponse(w http.ResponseWriter) error
type CreateTokenJSONRequestBody ¶
type CreateTokenJSONRequestBody = CreateTokenRequest
CreateTokenJSONRequestBody defines body for CreateToken for application/json ContentType.
type CreateTokenRequest ¶
type CreateTokenRequest struct {
Name string `json:"name"`
// Scopes Scope vocabulary: api:read (safe methods), api:write (mutations), tokens:read / tokens:write (token management), admin (config-mutation endpoints such as PUT /api/settings/*, /api/cameras/manage*, codec install, and password change), and * (all). admin is required for config mutation; api:write alone is not sufficient.
Scopes *[]string `json:"scopes,omitempty"`
}
CreateTokenRequest defines model for CreateTokenRequest.
type CreateTokenRequestObject ¶
type CreateTokenRequestObject struct {
Body *CreateTokenJSONRequestBody
}
type CreateTokenResponse ¶
type CreateTokenResponse struct {
CreatedAt time.Time `json:"created_at"`
Id int64 `json:"id"`
Name string `json:"name"`
Scopes []string `json:"scopes"`
Token string `json:"token"`
TokenPrefix string `json:"token_prefix"`
}
CreateTokenResponse defines model for CreateTokenResponse.
type CreateTokenResponseObject ¶
type CreateTokenResponseObject interface {
VisitCreateTokenResponse(w http.ResponseWriter) error
}
type CreateZone201JSONResponse ¶
type CreateZone201JSONResponse Zone
func (CreateZone201JSONResponse) VisitCreateZoneResponse ¶
func (response CreateZone201JSONResponse) VisitCreateZoneResponse(w http.ResponseWriter) error
type CreateZone400JSONResponse ¶
type CreateZone400JSONResponse Error
func (CreateZone400JSONResponse) VisitCreateZoneResponse ¶
func (response CreateZone400JSONResponse) VisitCreateZoneResponse(w http.ResponseWriter) error
type CreateZone404JSONResponse ¶
type CreateZone404JSONResponse Error
func (CreateZone404JSONResponse) VisitCreateZoneResponse ¶
func (response CreateZone404JSONResponse) VisitCreateZoneResponse(w http.ResponseWriter) error
type CreateZoneJSONRequestBody ¶
type CreateZoneJSONRequestBody = CreateZoneRequest
CreateZoneJSONRequestBody defines body for CreateZone for application/json ContentType.
type CreateZoneRequest ¶
type CreateZoneRequest struct {
Enabled *bool `json:"enabled,omitempty"`
FaceRecognition *bool `json:"face_recognition,omitempty"`
Labels *[]string `json:"labels,omitempty"`
Name string `json:"name"`
Points *[][]float32 `json:"points,omitempty"`
TrackPresence *bool `json:"track_presence,omitempty"`
X1 *float32 `json:"x1,omitempty"`
X2 *float32 `json:"x2,omitempty"`
Y1 *float32 `json:"y1,omitempty"`
Y2 *float32 `json:"y2,omitempty"`
}
CreateZoneRequest defines model for CreateZoneRequest.
type CreateZoneRequestObject ¶
type CreateZoneRequestObject struct {
Name string `json:"name"`
Body *CreateZoneJSONRequestBody
}
type CreateZoneResponseObject ¶
type CreateZoneResponseObject interface {
VisitCreateZoneResponse(w http.ResponseWriter) error
}
type DeleteObject200JSONResponse ¶
type DeleteObject200JSONResponse StatusDeleted
func (DeleteObject200JSONResponse) VisitDeleteObjectResponse ¶
func (response DeleteObject200JSONResponse) VisitDeleteObjectResponse(w http.ResponseWriter) error
type DeleteObject404JSONResponse ¶
type DeleteObject404JSONResponse Error
func (DeleteObject404JSONResponse) VisitDeleteObjectResponse ¶
func (response DeleteObject404JSONResponse) VisitDeleteObjectResponse(w http.ResponseWriter) error
type DeleteObjectReference200JSONResponse ¶
type DeleteObjectReference200JSONResponse StatusDeleted
func (DeleteObjectReference200JSONResponse) VisitDeleteObjectReferenceResponse ¶
func (response DeleteObjectReference200JSONResponse) VisitDeleteObjectReferenceResponse(w http.ResponseWriter) error
type DeleteObjectReferenceRequestObject ¶
type DeleteObjectReferenceRequestObject struct {
Id int64 `json:"id"`
}
type DeleteObjectReferenceResponseObject ¶
type DeleteObjectReferenceResponseObject interface {
VisitDeleteObjectReferenceResponse(w http.ResponseWriter) error
}
type DeleteObjectRequestObject ¶
type DeleteObjectRequestObject struct {
Id int64 `json:"id"`
}
type DeleteObjectResponseObject ¶
type DeleteObjectResponseObject interface {
VisitDeleteObjectResponse(w http.ResponseWriter) error
}
type DeletePerson200JSONResponse ¶
type DeletePerson200JSONResponse StatusDeleted
func (DeletePerson200JSONResponse) VisitDeletePersonResponse ¶
func (response DeletePerson200JSONResponse) VisitDeletePersonResponse(w http.ResponseWriter) error
type DeletePerson400JSONResponse ¶
type DeletePerson400JSONResponse Error
func (DeletePerson400JSONResponse) VisitDeletePersonResponse ¶
func (response DeletePerson400JSONResponse) VisitDeletePersonResponse(w http.ResponseWriter) error
type DeletePersonRequestObject ¶
type DeletePersonRequestObject struct {
Id int64 `json:"id"`
}
type DeletePersonResponseObject ¶
type DeletePersonResponseObject interface {
VisitDeletePersonResponse(w http.ResponseWriter) error
}
type DeleteRequest ¶
type DeleteRequest struct {
Camera *string `json:"camera,omitempty"`
FreeBytesTarget *int64 `json:"free_bytes_target,omitempty"`
From *string `json:"from,omitempty"`
OlderThanDays *int `json:"older_than_days,omitempty"`
Target DeleteRequestTarget `json:"target"`
To *string `json:"to,omitempty"`
}
DeleteRequest defines model for DeleteRequest.
type DeleteRequestTarget ¶
type DeleteRequestTarget string
DeleteRequestTarget defines model for DeleteRequest.Target.
const ( All DeleteRequestTarget = "all" Clips DeleteRequestTarget = "clips" FreeBytes DeleteRequestTarget = "free_bytes" Segments DeleteRequestTarget = "segments" )
Defines values for DeleteRequestTarget.
func (DeleteRequestTarget) Valid ¶
func (e DeleteRequestTarget) Valid() bool
Valid indicates whether the value is a known member of the DeleteRequestTarget enum.
type DeleteResult ¶
type DeleteResult struct {
Bytes *int64 `json:"bytes,omitempty"`
Cameras *[]string `json:"cameras,omitempty"`
Clips *int `json:"clips,omitempty"`
Segments *int `json:"segments,omitempty"`
Snapshots *int `json:"snapshots,omitempty"`
}
DeleteResult defines model for DeleteResult.
type DeleteToken200JSONResponse ¶
type DeleteToken200JSONResponse TokenRevokedResponse
func (DeleteToken200JSONResponse) VisitDeleteTokenResponse ¶
func (response DeleteToken200JSONResponse) VisitDeleteTokenResponse(w http.ResponseWriter) error
type DeleteTokenRequestObject ¶
type DeleteTokenRequestObject struct {
Id int64 `json:"id"`
}
type DeleteTokenResponseObject ¶
type DeleteTokenResponseObject interface {
VisitDeleteTokenResponse(w http.ResponseWriter) error
}
type DeleteZone200JSONResponse ¶
type DeleteZone200JSONResponse StatusDeleted
func (DeleteZone200JSONResponse) VisitDeleteZoneResponse ¶
func (response DeleteZone200JSONResponse) VisitDeleteZoneResponse(w http.ResponseWriter) error
type DeleteZone404JSONResponse ¶
type DeleteZone404JSONResponse Error
func (DeleteZone404JSONResponse) VisitDeleteZoneResponse ¶
func (response DeleteZone404JSONResponse) VisitDeleteZoneResponse(w http.ResponseWriter) error
type DeleteZoneRequestObject ¶
type DeleteZoneResponseObject ¶
type DeleteZoneResponseObject interface {
VisitDeleteZoneResponse(w http.ResponseWriter) error
}
type DismissSighting200JSONResponse ¶
type DismissSighting200JSONResponse StatusDismissed
func (DismissSighting200JSONResponse) VisitDismissSightingResponse ¶
func (response DismissSighting200JSONResponse) VisitDismissSightingResponse(w http.ResponseWriter) error
type DismissSighting404JSONResponse ¶
type DismissSighting404JSONResponse Error
func (DismissSighting404JSONResponse) VisitDismissSightingResponse ¶
func (response DismissSighting404JSONResponse) VisitDismissSightingResponse(w http.ResponseWriter) error
type DismissSightingRequestObject ¶
type DismissSightingRequestObject struct {
Id int64 `json:"id"`
}
type DismissSightingResponseObject ¶
type DismissSightingResponseObject interface {
VisitDismissSightingResponse(w http.ResponseWriter) error
}
type DoorbellAnswerResponse ¶
type DoorbellAnswerResponse struct {
AnsweredAt time.Time `json:"answered_at"`
AnsweredBy string `json:"answered_by"`
EventId string `json:"event_id"`
}
DoorbellAnswerResponse defines model for DoorbellAnswerResponse.
type DoorbellResponse ¶
DoorbellResponse defines model for DoorbellResponse.
type Event ¶
type Event struct {
AnsweredAt *time.Time `json:"answered_at,omitempty"`
AnsweredBy *string `json:"answered_by,omitempty"`
Box []int `json:"box"`
Camera string `json:"camera"`
// Category Review/notification priority. "detection" is low priority (e.g. a stationary/parked vehicle); everything else is "alert".
Category *EventCategory `json:"category,omitempty"`
ClipAvailable bool `json:"clip_available"`
ClipPath *string `json:"clip_path,omitempty"`
EndTime *time.Time `json:"end_time,omitempty"`
Id string `json:"id"`
Kind *string `json:"kind,omitempty"`
Label string `json:"label"`
ObjectName *string `json:"object_name,omitempty"`
Score float32 `json:"score"`
SnapshotAvailable bool `json:"snapshot_available"`
SnapshotPath *string `json:"snapshot_path,omitempty"`
SubLabel *string `json:"sub_label,omitempty"`
Timestamp time.Time `json:"timestamp"`
ZoneName *string `json:"zone_name,omitempty"`
}
Event defines model for Event.
type EventCategory ¶
type EventCategory string
EventCategory Review/notification priority. "detection" is low priority (e.g. a stationary/parked vehicle); everything else is "alert".
const ( EventCategoryAlert EventCategory = "alert" EventCategoryDetection EventCategory = "detection" )
Defines values for EventCategory.
func (EventCategory) Valid ¶
func (e EventCategory) Valid() bool
Valid indicates whether the value is a known member of the EventCategory enum.
type EventCounts ¶
type EventCounts struct {
ByCamera map[string]int `json:"by_camera"`
ByLabel map[string]int `json:"by_label"`
// Today Number of events with timestamp on or after today midnight (server local time).
Today int `json:"today"`
Total int `json:"total"`
}
EventCounts defines model for EventCounts.
type EventListEnvelope ¶
type EventListEnvelope struct {
HasMore bool `json:"has_more"`
Items []Event `json:"items"`
Limit int `json:"limit"`
Offset int `json:"offset"`
Total int `json:"total"`
}
EventListEnvelope defines model for EventListEnvelope.
type ExcludeActivityEvidence200JSONResponse ¶
type ExcludeActivityEvidence200JSONResponse Activity
func (ExcludeActivityEvidence200JSONResponse) VisitExcludeActivityEvidenceResponse ¶
func (response ExcludeActivityEvidence200JSONResponse) VisitExcludeActivityEvidenceResponse(w http.ResponseWriter) error
type ExcludeActivityEvidence400JSONResponse ¶
type ExcludeActivityEvidence400JSONResponse Error
func (ExcludeActivityEvidence400JSONResponse) VisitExcludeActivityEvidenceResponse ¶
func (response ExcludeActivityEvidence400JSONResponse) VisitExcludeActivityEvidenceResponse(w http.ResponseWriter) error
type ExcludeActivityEvidence404JSONResponse ¶
type ExcludeActivityEvidence404JSONResponse Error
func (ExcludeActivityEvidence404JSONResponse) VisitExcludeActivityEvidenceResponse ¶
func (response ExcludeActivityEvidence404JSONResponse) VisitExcludeActivityEvidenceResponse(w http.ResponseWriter) error
type ExcludeActivityEvidence409JSONResponse ¶
type ExcludeActivityEvidence409JSONResponse Error
func (ExcludeActivityEvidence409JSONResponse) VisitExcludeActivityEvidenceResponse ¶
func (response ExcludeActivityEvidence409JSONResponse) VisitExcludeActivityEvidenceResponse(w http.ResponseWriter) error
type ExcludeActivityEvidenceJSONRequestBody ¶
type ExcludeActivityEvidenceJSONRequestBody = ActivityEvidenceCorrectionRequest
ExcludeActivityEvidenceJSONRequestBody defines body for ExcludeActivityEvidence for application/json ContentType.
type ExcludeActivityEvidenceRequestObject ¶
type ExcludeActivityEvidenceRequestObject struct {
Id string `json:"id"`
EventId string `json:"eventId"`
Body *ExcludeActivityEvidenceJSONRequestBody
}
type ExcludeActivityEvidenceResponseObject ¶
type ExcludeActivityEvidenceResponseObject interface {
VisitExcludeActivityEvidenceResponse(w http.ResponseWriter) error
}
type ExportRecording200Videomp4Response ¶
func (ExportRecording200Videomp4Response) VisitExportRecordingResponse ¶
func (response ExportRecording200Videomp4Response) VisitExportRecordingResponse(w http.ResponseWriter) error
type ExportRecording400JSONResponse ¶
type ExportRecording400JSONResponse Error
func (ExportRecording400JSONResponse) VisitExportRecordingResponse ¶
func (response ExportRecording400JSONResponse) VisitExportRecordingResponse(w http.ResponseWriter) error
type ExportRecordingParams ¶
type ExportRecordingParams struct {
Start time.Time `form:"start" json:"start"`
End time.Time `form:"end" json:"end"`
}
ExportRecordingParams defines parameters for ExportRecording.
type ExportRecordingRequestObject ¶
type ExportRecordingRequestObject struct {
Camera string `json:"camera"`
Params ExportRecordingParams
}
type ExportRecordingResponseObject ¶
type ExportRecordingResponseObject interface {
VisitExportRecordingResponse(w http.ResponseWriter) error
}
type Face ¶
type Face struct {
Camera string `json:"camera"`
Confidence float64 `json:"confidence"`
CreatedAt time.Time `json:"created_at"`
CropPath *string `json:"crop_path,omitempty"`
EventId string `json:"event_id"`
Id int64 `json:"id"`
PersonId *int64 `json:"person_id,omitempty"`
Similarity *float64 `json:"similarity,omitempty"`
Timestamp time.Time `json:"timestamp"`
}
Face defines model for Face.
type FaceListEnvelope ¶
type FaceListEnvelope struct {
HasMore bool `json:"has_more"`
Items []Face `json:"items"`
Limit int `json:"limit"`
Offset int `json:"offset"`
Total int `json:"total"`
}
FaceListEnvelope defines model for FaceListEnvelope.
type FilesystemStats ¶
type FilesystemStats struct {
ClipBytes *int64 `json:"clip_bytes,omitempty"`
DiskAvailable *int64 `json:"disk_available,omitempty"`
Root *string `json:"root,omitempty"`
SameFilesystemAsRecording *bool `json:"same_filesystem_as_recording,omitempty"`
SegmentBytes *int64 `json:"segment_bytes,omitempty"`
UsedBytes *int64 `json:"used_bytes,omitempty"`
}
FilesystemStats defines model for FilesystemStats.
type GetActivity200JSONResponse ¶
type GetActivity200JSONResponse Activity
func (GetActivity200JSONResponse) VisitGetActivityResponse ¶
func (response GetActivity200JSONResponse) VisitGetActivityResponse(w http.ResponseWriter) error
type GetActivity404JSONResponse ¶
type GetActivity404JSONResponse Error
func (GetActivity404JSONResponse) VisitGetActivityResponse ¶
func (response GetActivity404JSONResponse) VisitGetActivityResponse(w http.ResponseWriter) error
type GetActivityCounts200JSONResponse ¶
type GetActivityCounts200JSONResponse ActivityCounts
func (GetActivityCounts200JSONResponse) VisitGetActivityCountsResponse ¶
func (response GetActivityCounts200JSONResponse) VisitGetActivityCountsResponse(w http.ResponseWriter) error
type GetActivityCountsRequestObject ¶
type GetActivityCountsRequestObject struct {
}
type GetActivityCountsResponseObject ¶
type GetActivityCountsResponseObject interface {
VisitGetActivityCountsResponse(w http.ResponseWriter) error
}
type GetActivityRequestObject ¶
type GetActivityRequestObject struct {
Id string `json:"id"`
}
type GetActivityResponseObject ¶
type GetActivityResponseObject interface {
VisitGetActivityResponse(w http.ResponseWriter) error
}
type GetAuthMe200JSONResponse ¶
type GetAuthMe200JSONResponse AuthMeResponse
func (GetAuthMe200JSONResponse) VisitGetAuthMeResponse ¶
func (response GetAuthMe200JSONResponse) VisitGetAuthMeResponse(w http.ResponseWriter) error
type GetAuthMe401JSONResponse ¶
type GetAuthMe401JSONResponse Error
func (GetAuthMe401JSONResponse) VisitGetAuthMeResponse ¶
func (response GetAuthMe401JSONResponse) VisitGetAuthMeResponse(w http.ResponseWriter) error
type GetAuthMeRequestObject ¶
type GetAuthMeRequestObject struct {
}
type GetAuthMeResponseObject ¶
type GetAuthMeResponseObject interface {
VisitGetAuthMeResponse(w http.ResponseWriter) error
}
type GetCamera200JSONResponse ¶
type GetCamera200JSONResponse CameraDetail
func (GetCamera200JSONResponse) VisitGetCameraResponse ¶
func (response GetCamera200JSONResponse) VisitGetCameraResponse(w http.ResponseWriter) error
type GetCamera404JSONResponse ¶
type GetCamera404JSONResponse Error
func (GetCamera404JSONResponse) VisitGetCameraResponse ¶
func (response GetCamera404JSONResponse) VisitGetCameraResponse(w http.ResponseWriter) error
type GetCameraPlayback200ApplicationvndAppleMpegurlResponse ¶
type GetCameraPlayback200ApplicationvndAppleMpegurlResponse struct {
Body io.Reader
ContentLength int64
}
func (GetCameraPlayback200ApplicationvndAppleMpegurlResponse) VisitGetCameraPlaybackResponse ¶
func (response GetCameraPlayback200ApplicationvndAppleMpegurlResponse) VisitGetCameraPlaybackResponse(w http.ResponseWriter) error
type GetCameraPlayback400JSONResponse ¶
type GetCameraPlayback400JSONResponse Error
func (GetCameraPlayback400JSONResponse) VisitGetCameraPlaybackResponse ¶
func (response GetCameraPlayback400JSONResponse) VisitGetCameraPlaybackResponse(w http.ResponseWriter) error
type GetCameraPlayback404JSONResponse ¶
type GetCameraPlayback404JSONResponse Error
func (GetCameraPlayback404JSONResponse) VisitGetCameraPlaybackResponse ¶
func (response GetCameraPlayback404JSONResponse) VisitGetCameraPlaybackResponse(w http.ResponseWriter) error
type GetCameraPlaybackParams ¶
type GetCameraPlaybackParams struct {
Start time.Time `form:"start" json:"start"`
Duration *int `form:"duration,omitempty" json:"duration,omitempty"`
}
GetCameraPlaybackParams defines parameters for GetCameraPlayback.
type GetCameraPlaybackRequestObject ¶
type GetCameraPlaybackRequestObject struct {
Name string `json:"name"`
Params GetCameraPlaybackParams
}
type GetCameraPlaybackResponseObject ¶
type GetCameraPlaybackResponseObject interface {
VisitGetCameraPlaybackResponse(w http.ResponseWriter) error
}
type GetCameraRequestObject ¶
type GetCameraRequestObject struct {
Name string `json:"name"`
}
type GetCameraResponseObject ¶
type GetCameraResponseObject interface {
VisitGetCameraResponse(w http.ResponseWriter) error
}
type GetCameraSnapshot200ImagejpegResponse ¶
func (GetCameraSnapshot200ImagejpegResponse) VisitGetCameraSnapshotResponse ¶
func (response GetCameraSnapshot200ImagejpegResponse) VisitGetCameraSnapshotResponse(w http.ResponseWriter) error
type GetCameraSnapshot404JSONResponse ¶
type GetCameraSnapshot404JSONResponse Error
func (GetCameraSnapshot404JSONResponse) VisitGetCameraSnapshotResponse ¶
func (response GetCameraSnapshot404JSONResponse) VisitGetCameraSnapshotResponse(w http.ResponseWriter) error
type GetCameraSnapshotRequestObject ¶
type GetCameraSnapshotRequestObject struct {
Name string `json:"name"`
}
type GetCameraSnapshotResponseObject ¶
type GetCameraSnapshotResponseObject interface {
VisitGetCameraSnapshotResponse(w http.ResponseWriter) error
}
type GetCameraThumbnail200ImagejpegResponse ¶
func (GetCameraThumbnail200ImagejpegResponse) VisitGetCameraThumbnailResponse ¶
func (response GetCameraThumbnail200ImagejpegResponse) VisitGetCameraThumbnailResponse(w http.ResponseWriter) error
type GetCameraThumbnail400JSONResponse ¶
type GetCameraThumbnail400JSONResponse Error
func (GetCameraThumbnail400JSONResponse) VisitGetCameraThumbnailResponse ¶
func (response GetCameraThumbnail400JSONResponse) VisitGetCameraThumbnailResponse(w http.ResponseWriter) error
type GetCameraThumbnail404JSONResponse ¶
type GetCameraThumbnail404JSONResponse Error
func (GetCameraThumbnail404JSONResponse) VisitGetCameraThumbnailResponse ¶
func (response GetCameraThumbnail404JSONResponse) VisitGetCameraThumbnailResponse(w http.ResponseWriter) error
type GetCameraThumbnailParams ¶
GetCameraThumbnailParams defines parameters for GetCameraThumbnail.
type GetCameraThumbnailRequestObject ¶
type GetCameraThumbnailRequestObject struct {
Name string `json:"name"`
Params GetCameraThumbnailParams
}
type GetCameraThumbnailResponseObject ¶
type GetCameraThumbnailResponseObject interface {
VisitGetCameraThumbnailResponse(w http.ResponseWriter) error
}
type GetCameraTimeline200JSONResponse ¶
type GetCameraTimeline200JSONResponse TimelineResponse
func (GetCameraTimeline200JSONResponse) VisitGetCameraTimelineResponse ¶
func (response GetCameraTimeline200JSONResponse) VisitGetCameraTimelineResponse(w http.ResponseWriter) error
type GetCameraTimeline404JSONResponse ¶
type GetCameraTimeline404JSONResponse Error
func (GetCameraTimeline404JSONResponse) VisitGetCameraTimelineResponse ¶
func (response GetCameraTimeline404JSONResponse) VisitGetCameraTimelineResponse(w http.ResponseWriter) error
type GetCameraTimelineParams ¶
type GetCameraTimelineParams struct {
Date *openapi_types.Date `form:"date,omitempty" json:"date,omitempty"`
// Tz IANA timezone defining the day boundaries (e.g. Europe/Amsterdam); defaults to UTC
Tz *string `form:"tz,omitempty" json:"tz,omitempty"`
}
GetCameraTimelineParams defines parameters for GetCameraTimeline.
type GetCameraTimelineRequestObject ¶
type GetCameraTimelineRequestObject struct {
Name string `json:"name"`
Params GetCameraTimelineParams
}
type GetCameraTimelineResponseObject ¶
type GetCameraTimelineResponseObject interface {
VisitGetCameraTimelineResponse(w http.ResponseWriter) error
}
type GetEvent200JSONResponse ¶
type GetEvent200JSONResponse Event
func (GetEvent200JSONResponse) VisitGetEventResponse ¶
func (response GetEvent200JSONResponse) VisitGetEventResponse(w http.ResponseWriter) error
type GetEvent404JSONResponse ¶
type GetEvent404JSONResponse Error
func (GetEvent404JSONResponse) VisitGetEventResponse ¶
func (response GetEvent404JSONResponse) VisitGetEventResponse(w http.ResponseWriter) error
type GetEventClip200Videomp4Response ¶
func (GetEventClip200Videomp4Response) VisitGetEventClipResponse ¶
func (response GetEventClip200Videomp4Response) VisitGetEventClipResponse(w http.ResponseWriter) error
type GetEventClip404JSONResponse ¶
type GetEventClip404JSONResponse Error
func (GetEventClip404JSONResponse) VisitGetEventClipResponse ¶
func (response GetEventClip404JSONResponse) VisitGetEventClipResponse(w http.ResponseWriter) error
type GetEventClipRequestObject ¶
type GetEventClipRequestObject struct {
Id string `json:"id"`
}
type GetEventClipResponseObject ¶
type GetEventClipResponseObject interface {
VisitGetEventClipResponse(w http.ResponseWriter) error
}
type GetEventCounts200JSONResponse ¶
type GetEventCounts200JSONResponse EventCounts
func (GetEventCounts200JSONResponse) VisitGetEventCountsResponse ¶
func (response GetEventCounts200JSONResponse) VisitGetEventCountsResponse(w http.ResponseWriter) error
type GetEventCountsParams ¶
type GetEventCountsParams struct {
// Kind Filter by event kind ("object" or "doorbell"). Omit to count all kinds.
Kind *string `form:"kind,omitempty" json:"kind,omitempty"`
}
GetEventCountsParams defines parameters for GetEventCounts.
type GetEventCountsRequestObject ¶
type GetEventCountsRequestObject struct {
Params GetEventCountsParams
}
type GetEventCountsResponseObject ¶
type GetEventCountsResponseObject interface {
VisitGetEventCountsResponse(w http.ResponseWriter) error
}
type GetEventDetectionCrop200ImagejpegResponse ¶
func (GetEventDetectionCrop200ImagejpegResponse) VisitGetEventDetectionCropResponse ¶
func (response GetEventDetectionCrop200ImagejpegResponse) VisitGetEventDetectionCropResponse(w http.ResponseWriter) error
type GetEventDetectionCrop404JSONResponse ¶
type GetEventDetectionCrop404JSONResponse Error
func (GetEventDetectionCrop404JSONResponse) VisitGetEventDetectionCropResponse ¶
func (response GetEventDetectionCrop404JSONResponse) VisitGetEventDetectionCropResponse(w http.ResponseWriter) error
type GetEventDetectionCropRequestObject ¶
type GetEventDetectionCropRequestObject struct {
Id string `json:"id"`
}
type GetEventDetectionCropResponseObject ¶
type GetEventDetectionCropResponseObject interface {
VisitGetEventDetectionCropResponse(w http.ResponseWriter) error
}
type GetEventRequestObject ¶
type GetEventRequestObject struct {
Id string `json:"id"`
}
type GetEventResponseObject ¶
type GetEventResponseObject interface {
VisitGetEventResponse(w http.ResponseWriter) error
}
type GetEventSnapshot200ImagejpegResponse ¶
func (GetEventSnapshot200ImagejpegResponse) VisitGetEventSnapshotResponse ¶
func (response GetEventSnapshot200ImagejpegResponse) VisitGetEventSnapshotResponse(w http.ResponseWriter) error
type GetEventSnapshot404JSONResponse ¶
type GetEventSnapshot404JSONResponse Error
func (GetEventSnapshot404JSONResponse) VisitGetEventSnapshotResponse ¶
func (response GetEventSnapshot404JSONResponse) VisitGetEventSnapshotResponse(w http.ResponseWriter) error
type GetEventSnapshotParams ¶
type GetEventSnapshotParams struct {
// Download Set to trigger Content-Disposition attachment header
Download *string `form:"download,omitempty" json:"download,omitempty"`
// Raw Set to serve raw image without bounding box overlay
Raw *string `form:"raw,omitempty" json:"raw,omitempty"`
}
GetEventSnapshotParams defines parameters for GetEventSnapshot.
type GetEventSnapshotRequestObject ¶
type GetEventSnapshotRequestObject struct {
Id string `json:"id"`
Params GetEventSnapshotParams
}
type GetEventSnapshotResponseObject ¶
type GetEventSnapshotResponseObject interface {
VisitGetEventSnapshotResponse(w http.ResponseWriter) error
}
type GetEventStream200TexteventStreamResponse ¶
func (GetEventStream200TexteventStreamResponse) VisitGetEventStreamResponse ¶
func (response GetEventStream200TexteventStreamResponse) VisitGetEventStreamResponse(w http.ResponseWriter) error
type GetEventStreamRequestObject ¶
type GetEventStreamRequestObject struct {
}
type GetEventStreamResponseObject ¶
type GetEventStreamResponseObject interface {
VisitGetEventStreamResponse(w http.ResponseWriter) error
}
type GetFaceCrop200ImagejpegResponse ¶
func (GetFaceCrop200ImagejpegResponse) VisitGetFaceCropResponse ¶
func (response GetFaceCrop200ImagejpegResponse) VisitGetFaceCropResponse(w http.ResponseWriter) error
type GetFaceCrop404JSONResponse ¶
type GetFaceCrop404JSONResponse Error
func (GetFaceCrop404JSONResponse) VisitGetFaceCropResponse ¶
func (response GetFaceCrop404JSONResponse) VisitGetFaceCropResponse(w http.ResponseWriter) error
type GetFaceCropRequestObject ¶
type GetFaceCropRequestObject struct {
Id int64 `json:"id"`
}
type GetFaceCropResponseObject ¶
type GetFaceCropResponseObject interface {
VisitGetFaceCropResponse(w http.ResponseWriter) error
}
type GetHealth200JSONResponse ¶
type GetHealth200JSONResponse HealthResponse
func (GetHealth200JSONResponse) VisitGetHealthResponse ¶
func (response GetHealth200JSONResponse) VisitGetHealthResponse(w http.ResponseWriter) error
type GetHealthLive200JSONResponse ¶
type GetHealthLive200JSONResponse HealthLiveResponse
func (GetHealthLive200JSONResponse) VisitGetHealthLiveResponse ¶
func (response GetHealthLive200JSONResponse) VisitGetHealthLiveResponse(w http.ResponseWriter) error
type GetHealthLiveRequestObject ¶
type GetHealthLiveRequestObject struct {
}
type GetHealthLiveResponseObject ¶
type GetHealthLiveResponseObject interface {
VisitGetHealthLiveResponse(w http.ResponseWriter) error
}
type GetHealthReady200JSONResponse ¶
type GetHealthReady200JSONResponse HealthReadyResponse
func (GetHealthReady200JSONResponse) VisitGetHealthReadyResponse ¶
func (response GetHealthReady200JSONResponse) VisitGetHealthReadyResponse(w http.ResponseWriter) error
type GetHealthReady503JSONResponse ¶
type GetHealthReady503JSONResponse HealthReadyResponse
func (GetHealthReady503JSONResponse) VisitGetHealthReadyResponse ¶
func (response GetHealthReady503JSONResponse) VisitGetHealthReadyResponse(w http.ResponseWriter) error
type GetHealthReadyRequestObject ¶
type GetHealthReadyRequestObject struct {
}
type GetHealthReadyResponseObject ¶
type GetHealthReadyResponseObject interface {
VisitGetHealthReadyResponse(w http.ResponseWriter) error
}
type GetHealthRequestObject ¶
type GetHealthRequestObject struct {
}
type GetHealthResponseObject ¶
type GetHealthResponseObject interface {
VisitGetHealthResponse(w http.ResponseWriter) error
}
type GetLiveHLS200ApplicationvndAppleMpegurlResponse ¶
func (GetLiveHLS200ApplicationvndAppleMpegurlResponse) VisitGetLiveHLSResponse ¶
func (response GetLiveHLS200ApplicationvndAppleMpegurlResponse) VisitGetLiveHLSResponse(w http.ResponseWriter) error
type GetLiveHLS404JSONResponse ¶
type GetLiveHLS404JSONResponse Error
func (GetLiveHLS404JSONResponse) VisitGetLiveHLSResponse ¶
func (response GetLiveHLS404JSONResponse) VisitGetLiveHLSResponse(w http.ResponseWriter) error
type GetLiveHLS503JSONResponse ¶
type GetLiveHLS503JSONResponse Error
func (GetLiveHLS503JSONResponse) VisitGetLiveHLSResponse ¶
func (response GetLiveHLS503JSONResponse) VisitGetLiveHLSResponse(w http.ResponseWriter) error
type GetLiveHLSInit200Videomp4Response ¶
func (GetLiveHLSInit200Videomp4Response) VisitGetLiveHLSInitResponse ¶
func (response GetLiveHLSInit200Videomp4Response) VisitGetLiveHLSInitResponse(w http.ResponseWriter) error
type GetLiveHLSInit404JSONResponse ¶
type GetLiveHLSInit404JSONResponse Error
func (GetLiveHLSInit404JSONResponse) VisitGetLiveHLSInitResponse ¶
func (response GetLiveHLSInit404JSONResponse) VisitGetLiveHLSInitResponse(w http.ResponseWriter) error
type GetLiveHLSInitRequestObject ¶
type GetLiveHLSInitRequestObject struct {
Name string `json:"name"`
}
type GetLiveHLSInitResponseObject ¶
type GetLiveHLSInitResponseObject interface {
VisitGetLiveHLSInitResponse(w http.ResponseWriter) error
}
type GetLiveHLSRequestObject ¶
type GetLiveHLSRequestObject struct {
Name string `json:"name"`
}
type GetLiveHLSResponseObject ¶
type GetLiveHLSResponseObject interface {
VisitGetLiveHLSResponse(w http.ResponseWriter) error
}
type GetLiveHLSSegment200Videomp4Response ¶
func (GetLiveHLSSegment200Videomp4Response) VisitGetLiveHLSSegmentResponse ¶
func (response GetLiveHLSSegment200Videomp4Response) VisitGetLiveHLSSegmentResponse(w http.ResponseWriter) error
type GetLiveHLSSegment404JSONResponse ¶
type GetLiveHLSSegment404JSONResponse Error
func (GetLiveHLSSegment404JSONResponse) VisitGetLiveHLSSegmentResponse ¶
func (response GetLiveHLSSegment404JSONResponse) VisitGetLiveHLSSegmentResponse(w http.ResponseWriter) error
type GetLiveHLSSegmentResponseObject ¶
type GetLiveHLSSegmentResponseObject interface {
VisitGetLiveHLSSegmentResponse(w http.ResponseWriter) error
}
type GetMJPEG200MultipartResponse ¶
func (GetMJPEG200MultipartResponse) VisitGetMJPEGResponse ¶
func (response GetMJPEG200MultipartResponse) VisitGetMJPEGResponse(w http.ResponseWriter) error
type GetMJPEG404JSONResponse ¶
type GetMJPEG404JSONResponse Error
func (GetMJPEG404JSONResponse) VisitGetMJPEGResponse ¶
func (response GetMJPEG404JSONResponse) VisitGetMJPEGResponse(w http.ResponseWriter) error
type GetMJPEGRequestObject ¶
type GetMJPEGRequestObject struct {
Name string `json:"name"`
}
type GetMJPEGResponseObject ¶
type GetMJPEGResponseObject interface {
VisitGetMJPEGResponse(w http.ResponseWriter) error
}
type GetMSEWebSocket101Response ¶
type GetMSEWebSocket101Response struct {
}
func (GetMSEWebSocket101Response) VisitGetMSEWebSocketResponse ¶
func (response GetMSEWebSocket101Response) VisitGetMSEWebSocketResponse(w http.ResponseWriter) error
type GetMSEWebSocket404JSONResponse ¶
type GetMSEWebSocket404JSONResponse Error
func (GetMSEWebSocket404JSONResponse) VisitGetMSEWebSocketResponse ¶
func (response GetMSEWebSocket404JSONResponse) VisitGetMSEWebSocketResponse(w http.ResponseWriter) error
type GetMSEWebSocketRequestObject ¶
type GetMSEWebSocketRequestObject struct {
Name string `json:"name"`
}
type GetMSEWebSocketResponseObject ¶
type GetMSEWebSocketResponseObject interface {
VisitGetMSEWebSocketResponse(w http.ResponseWriter) error
}
type GetMetrics200TextResponse ¶
type GetMetrics200TextResponse string
func (GetMetrics200TextResponse) VisitGetMetricsResponse ¶
func (response GetMetrics200TextResponse) VisitGetMetricsResponse(w http.ResponseWriter) error
type GetMetricsRequestObject ¶
type GetMetricsRequestObject struct {
}
type GetMetricsResponseObject ¶
type GetMetricsResponseObject interface {
VisitGetMetricsResponse(w http.ResponseWriter) error
}
type GetObjectCrop200ImagejpegResponse ¶
func (GetObjectCrop200ImagejpegResponse) VisitGetObjectCropResponse ¶
func (response GetObjectCrop200ImagejpegResponse) VisitGetObjectCropResponse(w http.ResponseWriter) error
type GetObjectCrop404JSONResponse ¶
type GetObjectCrop404JSONResponse Error
func (GetObjectCrop404JSONResponse) VisitGetObjectCropResponse ¶
func (response GetObjectCrop404JSONResponse) VisitGetObjectCropResponse(w http.ResponseWriter) error
type GetObjectCropParams ¶
type GetObjectCropParams struct {
// Ref Optional reference ID to get a specific reference crop
Ref *int64 `form:"ref,omitempty" json:"ref,omitempty"`
}
GetObjectCropParams defines parameters for GetObjectCrop.
type GetObjectCropRequestObject ¶
type GetObjectCropRequestObject struct {
Id int64 `json:"id"`
Params GetObjectCropParams
}
type GetObjectCropResponseObject ¶
type GetObjectCropResponseObject interface {
VisitGetObjectCropResponse(w http.ResponseWriter) error
}
type GetOpenAPISpec200JSONResponse ¶
type GetOpenAPISpec200JSONResponse map[string]interface{}
func (GetOpenAPISpec200JSONResponse) VisitGetOpenAPISpecResponse ¶
func (response GetOpenAPISpec200JSONResponse) VisitGetOpenAPISpecResponse(w http.ResponseWriter) error
type GetOpenAPISpecRequestObject ¶
type GetOpenAPISpecRequestObject struct {
}
type GetOpenAPISpecResponseObject ¶
type GetOpenAPISpecResponseObject interface {
VisitGetOpenAPISpecResponse(w http.ResponseWriter) error
}
type GetPerson200JSONResponse ¶
type GetPerson200JSONResponse PersonDetail
func (GetPerson200JSONResponse) VisitGetPersonResponse ¶
func (response GetPerson200JSONResponse) VisitGetPersonResponse(w http.ResponseWriter) error
type GetPerson404JSONResponse ¶
type GetPerson404JSONResponse Error
func (GetPerson404JSONResponse) VisitGetPersonResponse ¶
func (response GetPerson404JSONResponse) VisitGetPersonResponse(w http.ResponseWriter) error
type GetPersonRequestObject ¶
type GetPersonRequestObject struct {
Id int64 `json:"id"`
}
type GetPersonResponseObject ¶
type GetPersonResponseObject interface {
VisitGetPersonResponse(w http.ResponseWriter) error
}
type GetRecordingsCalendar200JSONResponse ¶
type GetRecordingsCalendar200JSONResponse RecordingCalendarResponse
func (GetRecordingsCalendar200JSONResponse) VisitGetRecordingsCalendarResponse ¶
func (response GetRecordingsCalendar200JSONResponse) VisitGetRecordingsCalendarResponse(w http.ResponseWriter) error
type GetRecordingsCalendarParams ¶
type GetRecordingsCalendarParams struct {
Camera *string `form:"camera,omitempty" json:"camera,omitempty"`
// Month Month in YYYY-MM format
Month *string `form:"month,omitempty" json:"month,omitempty"`
// Tz IANA timezone defining the month boundaries (e.g. Europe/Amsterdam); defaults to UTC
Tz *string `form:"tz,omitempty" json:"tz,omitempty"`
}
GetRecordingsCalendarParams defines parameters for GetRecordingsCalendar.
type GetRecordingsCalendarRequestObject ¶
type GetRecordingsCalendarRequestObject struct {
Params GetRecordingsCalendarParams
}
type GetRecordingsCalendarResponseObject ¶
type GetRecordingsCalendarResponseObject interface {
VisitGetRecordingsCalendarResponse(w http.ResponseWriter) error
}
type GetRecordingsSummary200JSONResponse ¶
type GetRecordingsSummary200JSONResponse RecordingSummaryResponse
func (GetRecordingsSummary200JSONResponse) VisitGetRecordingsSummaryResponse ¶
func (response GetRecordingsSummary200JSONResponse) VisitGetRecordingsSummaryResponse(w http.ResponseWriter) error
type GetRecordingsSummaryParams ¶
type GetRecordingsSummaryParams struct {
Date *openapi_types.Date `form:"date,omitempty" json:"date,omitempty"`
// Tz IANA timezone defining the day boundaries (e.g. Europe/Amsterdam); defaults to UTC
Tz *string `form:"tz,omitempty" json:"tz,omitempty"`
}
GetRecordingsSummaryParams defines parameters for GetRecordingsSummary.
type GetRecordingsSummaryRequestObject ¶
type GetRecordingsSummaryRequestObject struct {
Params GetRecordingsSummaryParams
}
type GetRecordingsSummaryResponseObject ¶
type GetRecordingsSummaryResponseObject interface {
VisitGetRecordingsSummaryResponse(w http.ResponseWriter) error
}
type GetSegment200Videomp4Response ¶
func (GetSegment200Videomp4Response) VisitGetSegmentResponse ¶
func (response GetSegment200Videomp4Response) VisitGetSegmentResponse(w http.ResponseWriter) error
type GetSegment400JSONResponse ¶
type GetSegment400JSONResponse Error
func (GetSegment400JSONResponse) VisitGetSegmentResponse ¶
func (response GetSegment400JSONResponse) VisitGetSegmentResponse(w http.ResponseWriter) error
type GetSegment404JSONResponse ¶
type GetSegment404JSONResponse Error
func (GetSegment404JSONResponse) VisitGetSegmentResponse ¶
func (response GetSegment404JSONResponse) VisitGetSegmentResponse(w http.ResponseWriter) error
type GetSegmentHLS200Videomp4Response ¶
func (GetSegmentHLS200Videomp4Response) VisitGetSegmentHLSResponse ¶
func (response GetSegmentHLS200Videomp4Response) VisitGetSegmentHLSResponse(w http.ResponseWriter) error
type GetSegmentHLS400JSONResponse ¶
type GetSegmentHLS400JSONResponse Error
func (GetSegmentHLS400JSONResponse) VisitGetSegmentHLSResponse ¶
func (response GetSegmentHLS400JSONResponse) VisitGetSegmentHLSResponse(w http.ResponseWriter) error
type GetSegmentHLS404JSONResponse ¶
type GetSegmentHLS404JSONResponse Error
func (GetSegmentHLS404JSONResponse) VisitGetSegmentHLSResponse ¶
func (response GetSegmentHLS404JSONResponse) VisitGetSegmentHLSResponse(w http.ResponseWriter) error
type GetSegmentHLSResponseObject ¶
type GetSegmentHLSResponseObject interface {
VisitGetSegmentHLSResponse(w http.ResponseWriter) error
}
type GetSegmentInit200Videomp4Response ¶
func (GetSegmentInit200Videomp4Response) VisitGetSegmentInitResponse ¶
func (response GetSegmentInit200Videomp4Response) VisitGetSegmentInitResponse(w http.ResponseWriter) error
type GetSegmentInit400JSONResponse ¶
type GetSegmentInit400JSONResponse Error
func (GetSegmentInit400JSONResponse) VisitGetSegmentInitResponse ¶
func (response GetSegmentInit400JSONResponse) VisitGetSegmentInitResponse(w http.ResponseWriter) error
type GetSegmentInit404JSONResponse ¶
type GetSegmentInit404JSONResponse Error
func (GetSegmentInit404JSONResponse) VisitGetSegmentInitResponse ¶
func (response GetSegmentInit404JSONResponse) VisitGetSegmentInitResponse(w http.ResponseWriter) error
type GetSegmentInitResponseObject ¶
type GetSegmentInitResponseObject interface {
VisitGetSegmentInitResponse(w http.ResponseWriter) error
}
type GetSegmentRequestObject ¶
type GetSegmentResponseObject ¶
type GetSegmentResponseObject interface {
VisitGetSegmentResponse(w http.ResponseWriter) error
}
type GetStorage200JSONResponse ¶
type GetStorage200JSONResponse StorageBreakdown
func (GetStorage200JSONResponse) VisitGetStorageResponse ¶
func (response GetStorage200JSONResponse) VisitGetStorageResponse(w http.ResponseWriter) error
type GetStorageAudit200JSONResponse ¶
type GetStorageAudit200JSONResponse []StorageAuditEntry
func (GetStorageAudit200JSONResponse) VisitGetStorageAuditResponse ¶
func (response GetStorageAudit200JSONResponse) VisitGetStorageAuditResponse(w http.ResponseWriter) error
type GetStorageAuditParams ¶
type GetStorageAuditParams struct {
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
GetStorageAuditParams defines parameters for GetStorageAudit.
type GetStorageAuditRequestObject ¶
type GetStorageAuditRequestObject struct {
Params GetStorageAuditParams
}
type GetStorageAuditResponseObject ¶
type GetStorageAuditResponseObject interface {
VisitGetStorageAuditResponse(w http.ResponseWriter) error
}
type GetStorageRequestObject ¶
type GetStorageRequestObject struct {
}
type GetStorageResponseObject ¶
type GetStorageResponseObject interface {
VisitGetStorageResponse(w http.ResponseWriter) error
}
type GetStreamingCapabilities200JSONResponse ¶
type GetStreamingCapabilities200JSONResponse StreamingCapabilities
func (GetStreamingCapabilities200JSONResponse) VisitGetStreamingCapabilitiesResponse ¶
func (response GetStreamingCapabilities200JSONResponse) VisitGetStreamingCapabilitiesResponse(w http.ResponseWriter) error
type GetStreamingCapabilitiesRequestObject ¶
type GetStreamingCapabilitiesRequestObject struct {
}
type GetStreamingCapabilitiesResponseObject ¶
type GetStreamingCapabilitiesResponseObject interface {
VisitGetStreamingCapabilitiesResponse(w http.ResponseWriter) error
}
type GetSystem200JSONResponse ¶
type GetSystem200JSONResponse SystemResponse
func (GetSystem200JSONResponse) VisitGetSystemResponse ¶
func (response GetSystem200JSONResponse) VisitGetSystemResponse(w http.ResponseWriter) error
type GetSystemRequestObject ¶
type GetSystemRequestObject struct {
}
type GetSystemResponseObject ¶
type GetSystemResponseObject interface {
VisitGetSystemResponse(w http.ResponseWriter) error
}
type GetTalkbackCapabilities200JSONResponse ¶
type GetTalkbackCapabilities200JSONResponse TalkbackCapabilities
func (GetTalkbackCapabilities200JSONResponse) VisitGetTalkbackCapabilitiesResponse ¶
func (response GetTalkbackCapabilities200JSONResponse) VisitGetTalkbackCapabilitiesResponse(w http.ResponseWriter) error
type GetTalkbackCapabilities403JSONResponse ¶
type GetTalkbackCapabilities403JSONResponse Error
func (GetTalkbackCapabilities403JSONResponse) VisitGetTalkbackCapabilitiesResponse ¶
func (response GetTalkbackCapabilities403JSONResponse) VisitGetTalkbackCapabilitiesResponse(w http.ResponseWriter) error
type GetTalkbackCapabilities404JSONResponse ¶
type GetTalkbackCapabilities404JSONResponse Error
func (GetTalkbackCapabilities404JSONResponse) VisitGetTalkbackCapabilitiesResponse ¶
func (response GetTalkbackCapabilities404JSONResponse) VisitGetTalkbackCapabilitiesResponse(w http.ResponseWriter) error
type GetTalkbackCapabilitiesRequestObject ¶
type GetTalkbackCapabilitiesRequestObject struct {
Name string `json:"name"`
}
type GetTalkbackCapabilitiesResponseObject ¶
type GetTalkbackCapabilitiesResponseObject interface {
VisitGetTalkbackCapabilitiesResponse(w http.ResponseWriter) error
}
type GetZonePresence200JSONResponse ¶
type GetZonePresence200JSONResponse []ZonePresence
func (GetZonePresence200JSONResponse) VisitGetZonePresenceResponse ¶
func (response GetZonePresence200JSONResponse) VisitGetZonePresenceResponse(w http.ResponseWriter) error
type GetZonePresence404JSONResponse ¶
type GetZonePresence404JSONResponse Error
func (GetZonePresence404JSONResponse) VisitGetZonePresenceResponse ¶
func (response GetZonePresence404JSONResponse) VisitGetZonePresenceResponse(w http.ResponseWriter) error
type GetZonePresenceResponseObject ¶
type GetZonePresenceResponseObject interface {
VisitGetZonePresenceResponse(w http.ResponseWriter) error
}
type HealthChecks ¶
type HealthChecks struct {
Cameras CameraHealthCheck `json:"cameras"`
Database HealthChecksDatabase `json:"database"`
Mqtt HealthChecksMqtt `json:"mqtt"`
Storage StorageHealthCheck `json:"storage"`
}
HealthChecks defines model for HealthChecks.
type HealthChecksDatabase ¶
type HealthChecksDatabase string
HealthChecksDatabase defines model for HealthChecks.Database.
const ( HealthChecksDatabaseError HealthChecksDatabase = "error" HealthChecksDatabaseOk HealthChecksDatabase = "ok" )
Defines values for HealthChecksDatabase.
func (HealthChecksDatabase) Valid ¶
func (e HealthChecksDatabase) Valid() bool
Valid indicates whether the value is a known member of the HealthChecksDatabase enum.
type HealthChecksMqtt ¶
type HealthChecksMqtt string
HealthChecksMqtt defines model for HealthChecks.Mqtt.
const ( Connected HealthChecksMqtt = "connected" Disabled HealthChecksMqtt = "disabled" Disconnected HealthChecksMqtt = "disconnected" )
Defines values for HealthChecksMqtt.
func (HealthChecksMqtt) Valid ¶
func (e HealthChecksMqtt) Valid() bool
Valid indicates whether the value is a known member of the HealthChecksMqtt enum.
type HealthLiveResponse ¶
type HealthLiveResponse struct {
Status HealthLiveResponseStatus `json:"status"`
Uptime string `json:"uptime"`
}
HealthLiveResponse defines model for HealthLiveResponse.
type HealthLiveResponseStatus ¶
type HealthLiveResponseStatus string
HealthLiveResponseStatus defines model for HealthLiveResponse.Status.
const (
HealthLiveResponseStatusOk HealthLiveResponseStatus = "ok"
)
Defines values for HealthLiveResponseStatus.
func (HealthLiveResponseStatus) Valid ¶
func (e HealthLiveResponseStatus) Valid() bool
Valid indicates whether the value is a known member of the HealthLiveResponseStatus enum.
type HealthReadyResponse ¶
type HealthReadyResponse struct {
Checks ReadyChecks `json:"checks"`
Status HealthReadyResponseStatus `json:"status"`
}
HealthReadyResponse defines model for HealthReadyResponse.
type HealthReadyResponseStatus ¶
type HealthReadyResponseStatus string
HealthReadyResponseStatus defines model for HealthReadyResponse.Status.
const ( HealthReadyResponseStatusDegraded HealthReadyResponseStatus = "degraded" HealthReadyResponseStatusReady HealthReadyResponseStatus = "ready" HealthReadyResponseStatusStarting HealthReadyResponseStatus = "starting" )
Defines values for HealthReadyResponseStatus.
func (HealthReadyResponseStatus) Valid ¶
func (e HealthReadyResponseStatus) Valid() bool
Valid indicates whether the value is a known member of the HealthReadyResponseStatus enum.
type HealthResponse ¶
type HealthResponse struct {
Checks HealthChecks `json:"checks"`
Status HealthResponseStatus `json:"status"`
Uptime string `json:"uptime"`
Version string `json:"version"`
}
HealthResponse defines model for HealthResponse.
type HealthResponseStatus ¶
type HealthResponseStatus string
HealthResponseStatus defines model for HealthResponse.Status.
const ( HealthResponseStatusDegraded HealthResponseStatus = "degraded" HealthResponseStatusOk HealthResponseStatus = "ok" )
Defines values for HealthResponseStatus.
func (HealthResponseStatus) Valid ¶
func (e HealthResponseStatus) Valid() bool
Valid indicates whether the value is a known member of the HealthResponseStatus enum.
type IdentifyEvent200JSONResponse ¶
type IdentifyEvent200JSONResponse []ObjectSighting
func (IdentifyEvent200JSONResponse) VisitIdentifyEventResponse ¶
func (response IdentifyEvent200JSONResponse) VisitIdentifyEventResponse(w http.ResponseWriter) error
type IdentifyEvent404JSONResponse ¶
type IdentifyEvent404JSONResponse Error
func (IdentifyEvent404JSONResponse) VisitIdentifyEventResponse ¶
func (response IdentifyEvent404JSONResponse) VisitIdentifyEventResponse(w http.ResponseWriter) error
type IdentifyEvent503JSONResponse ¶
type IdentifyEvent503JSONResponse Error
func (IdentifyEvent503JSONResponse) VisitIdentifyEventResponse ¶
func (response IdentifyEvent503JSONResponse) VisitIdentifyEventResponse(w http.ResponseWriter) error
type IdentifyEventRequestObject ¶
type IdentifyEventRequestObject struct {
Id string `json:"id"`
}
type IdentifyEventResponseObject ¶
type IdentifyEventResponseObject interface {
VisitIdentifyEventResponse(w http.ResponseWriter) error
}
type IgnoreFace200JSONResponse ¶
type IgnoreFace200JSONResponse StatusIgnored
func (IgnoreFace200JSONResponse) VisitIgnoreFaceResponse ¶
func (response IgnoreFace200JSONResponse) VisitIgnoreFaceResponse(w http.ResponseWriter) error
type IgnoreFace400JSONResponse ¶
type IgnoreFace400JSONResponse Error
func (IgnoreFace400JSONResponse) VisitIgnoreFaceResponse ¶
func (response IgnoreFace400JSONResponse) VisitIgnoreFaceResponse(w http.ResponseWriter) error
type IgnoreFaceRequestObject ¶
type IgnoreFaceRequestObject struct {
Id int64 `json:"id"`
}
type IgnoreFaceResponseObject ¶
type IgnoreFaceResponseObject interface {
VisitIgnoreFaceResponse(w http.ResponseWriter) error
}
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type KnownObject ¶
type KnownObject struct {
CreatedAt time.Time `json:"created_at"`
CropPath *string `json:"crop_path,omitempty"`
Id int64 `json:"id"`
Label string `json:"label"`
MatchThreshold *float64 `json:"match_threshold,omitempty"`
Name string `json:"name"`
}
KnownObject defines model for KnownObject.
type ListActivities200JSONResponse ¶
type ListActivities200JSONResponse ActivityListEnvelope
func (ListActivities200JSONResponse) VisitListActivitiesResponse ¶
func (response ListActivities200JSONResponse) VisitListActivitiesResponse(w http.ResponseWriter) error
type ListActivitiesParams ¶
type ListActivitiesParams struct {
Camera *string `form:"camera,omitempty" json:"camera,omitempty"`
Label *string `form:"label,omitempty" json:"label,omitempty"`
Zone *string `form:"zone,omitempty" json:"zone,omitempty"`
Object *string `form:"object,omitempty" json:"object,omitempty"`
Category *ListActivitiesParamsCategory `form:"category,omitempty" json:"category,omitempty"`
Kind *string `form:"kind,omitempty" json:"kind,omitempty"`
// State Incident lifecycle state
State *ListActivitiesParamsState `form:"state,omitempty" json:"state,omitempty"`
// Q Search camera, label, zone, or recognized name
Q *string `form:"q,omitempty" json:"q,omitempty"`
After *time.Time `form:"after,omitempty" json:"after,omitempty"`
Before *time.Time `form:"before,omitempty" json:"before,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
Offset *int `form:"offset,omitempty" json:"offset,omitempty"`
}
ListActivitiesParams defines parameters for ListActivities.
type ListActivitiesParamsCategory ¶
type ListActivitiesParamsCategory string
ListActivitiesParamsCategory defines parameters for ListActivities.
const ( Alert ListActivitiesParamsCategory = "alert" Detection ListActivitiesParamsCategory = "detection" )
Defines values for ListActivitiesParamsCategory.
func (ListActivitiesParamsCategory) Valid ¶
func (e ListActivitiesParamsCategory) Valid() bool
Valid indicates whether the value is a known member of the ListActivitiesParamsCategory enum.
type ListActivitiesParamsState ¶
type ListActivitiesParamsState string
ListActivitiesParamsState defines parameters for ListActivities.
const ( ListActivitiesParamsStateFinalized ListActivitiesParamsState = "finalized" ListActivitiesParamsStateOpen ListActivitiesParamsState = "open" )
Defines values for ListActivitiesParamsState.
func (ListActivitiesParamsState) Valid ¶
func (e ListActivitiesParamsState) Valid() bool
Valid indicates whether the value is a known member of the ListActivitiesParamsState enum.
type ListActivitiesRequestObject ¶
type ListActivitiesRequestObject struct {
Params ListActivitiesParams
}
type ListActivitiesResponseObject ¶
type ListActivitiesResponseObject interface {
VisitListActivitiesResponse(w http.ResponseWriter) error
}
type ListCameras200JSONResponse ¶
type ListCameras200JSONResponse CameraListEnvelope
func (ListCameras200JSONResponse) VisitListCamerasResponse ¶
func (response ListCameras200JSONResponse) VisitListCamerasResponse(w http.ResponseWriter) error
type ListCamerasRequestObject ¶
type ListCamerasRequestObject struct {
}
type ListCamerasResponseObject ¶
type ListCamerasResponseObject interface {
VisitListCamerasResponse(w http.ResponseWriter) error
}
type ListEvents200JSONResponse ¶
type ListEvents200JSONResponse EventListEnvelope
func (ListEvents200JSONResponse) VisitListEventsResponse ¶
func (response ListEvents200JSONResponse) VisitListEventsResponse(w http.ResponseWriter) error
type ListEventsParams ¶
type ListEventsParams struct {
Camera *string `form:"camera,omitempty" json:"camera,omitempty"`
Label *string `form:"label,omitempty" json:"label,omitempty"`
Zone *string `form:"zone,omitempty" json:"zone,omitempty"`
Object *string `form:"object,omitempty" json:"object,omitempty"`
// Since Only return events after this timestamp
Since *time.Time `form:"since,omitempty" json:"since,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
Offset *int `form:"offset,omitempty" json:"offset,omitempty"`
// Kind Filter by event kind ("object" or "doorbell")
Kind *string `form:"kind,omitempty" json:"kind,omitempty"`
}
ListEventsParams defines parameters for ListEvents.
type ListEventsRequestObject ¶
type ListEventsRequestObject struct {
Params ListEventsParams
}
type ListEventsResponseObject ¶
type ListEventsResponseObject interface {
VisitListEventsResponse(w http.ResponseWriter) error
}
type ListObjectReferences200JSONResponse ¶
type ListObjectReferences200JSONResponse ReferenceListEnvelope
func (ListObjectReferences200JSONResponse) VisitListObjectReferencesResponse ¶
func (response ListObjectReferences200JSONResponse) VisitListObjectReferencesResponse(w http.ResponseWriter) error
type ListObjectReferences400JSONResponse ¶
type ListObjectReferences400JSONResponse Error
func (ListObjectReferences400JSONResponse) VisitListObjectReferencesResponse ¶
func (response ListObjectReferences400JSONResponse) VisitListObjectReferencesResponse(w http.ResponseWriter) error
type ListObjectReferencesRequestObject ¶
type ListObjectReferencesRequestObject struct {
Id int64 `json:"id"`
}
type ListObjectReferencesResponseObject ¶
type ListObjectReferencesResponseObject interface {
VisitListObjectReferencesResponse(w http.ResponseWriter) error
}
type ListObjectSightings200JSONResponse ¶
type ListObjectSightings200JSONResponse SightingListEnvelope
func (ListObjectSightings200JSONResponse) VisitListObjectSightingsResponse ¶
func (response ListObjectSightings200JSONResponse) VisitListObjectSightingsResponse(w http.ResponseWriter) error
type ListObjectSightings400JSONResponse ¶
type ListObjectSightings400JSONResponse Error
func (ListObjectSightings400JSONResponse) VisitListObjectSightingsResponse ¶
func (response ListObjectSightings400JSONResponse) VisitListObjectSightingsResponse(w http.ResponseWriter) error
type ListObjectSightingsParams ¶
type ListObjectSightingsParams struct {
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListObjectSightingsParams defines parameters for ListObjectSightings.
type ListObjectSightingsRequestObject ¶
type ListObjectSightingsRequestObject struct {
Id int64 `json:"id"`
Params ListObjectSightingsParams
}
type ListObjectSightingsResponseObject ¶
type ListObjectSightingsResponseObject interface {
VisitListObjectSightingsResponse(w http.ResponseWriter) error
}
type ListObjects200JSONResponse ¶
type ListObjects200JSONResponse ObjectListEnvelope
func (ListObjects200JSONResponse) VisitListObjectsResponse ¶
func (response ListObjects200JSONResponse) VisitListObjectsResponse(w http.ResponseWriter) error
type ListObjectsRequestObject ¶
type ListObjectsRequestObject struct {
}
type ListObjectsResponseObject ¶
type ListObjectsResponseObject interface {
VisitListObjectsResponse(w http.ResponseWriter) error
}
type ListPeople200JSONResponse ¶
type ListPeople200JSONResponse PersonListEnvelope
func (ListPeople200JSONResponse) VisitListPeopleResponse ¶
func (response ListPeople200JSONResponse) VisitListPeopleResponse(w http.ResponseWriter) error
type ListPeopleRequestObject ¶
type ListPeopleRequestObject struct {
}
type ListPeopleResponseObject ¶
type ListPeopleResponseObject interface {
VisitListPeopleResponse(w http.ResponseWriter) error
}
type ListPersonEvents200JSONResponse ¶
type ListPersonEvents200JSONResponse PersonEventListEnvelope
func (ListPersonEvents200JSONResponse) VisitListPersonEventsResponse ¶
func (response ListPersonEvents200JSONResponse) VisitListPersonEventsResponse(w http.ResponseWriter) error
type ListPersonEvents404JSONResponse ¶
type ListPersonEvents404JSONResponse Error
func (ListPersonEvents404JSONResponse) VisitListPersonEventsResponse ¶
func (response ListPersonEvents404JSONResponse) VisitListPersonEventsResponse(w http.ResponseWriter) error
type ListPersonEventsRequestObject ¶
type ListPersonEventsRequestObject struct {
Id int64 `json:"id"`
}
type ListPersonEventsResponseObject ¶
type ListPersonEventsResponseObject interface {
VisitListPersonEventsResponse(w http.ResponseWriter) error
}
type ListPersonFaces200JSONResponse ¶
type ListPersonFaces200JSONResponse FaceListEnvelope
func (ListPersonFaces200JSONResponse) VisitListPersonFacesResponse ¶
func (response ListPersonFaces200JSONResponse) VisitListPersonFacesResponse(w http.ResponseWriter) error
type ListPersonFaces400JSONResponse ¶
type ListPersonFaces400JSONResponse Error
func (ListPersonFaces400JSONResponse) VisitListPersonFacesResponse ¶
func (response ListPersonFaces400JSONResponse) VisitListPersonFacesResponse(w http.ResponseWriter) error
type ListPersonFacesParams ¶
type ListPersonFacesParams struct {
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListPersonFacesParams defines parameters for ListPersonFaces.
type ListPersonFacesRequestObject ¶
type ListPersonFacesRequestObject struct {
Id int64 `json:"id"`
Params ListPersonFacesParams
}
type ListPersonFacesResponseObject ¶
type ListPersonFacesResponseObject interface {
VisitListPersonFacesResponse(w http.ResponseWriter) error
}
type ListSegments200JSONResponse ¶
type ListSegments200JSONResponse SegmentListEnvelope
func (ListSegments200JSONResponse) VisitListSegmentsResponse ¶
func (response ListSegments200JSONResponse) VisitListSegmentsResponse(w http.ResponseWriter) error
type ListSegments404JSONResponse ¶
type ListSegments404JSONResponse Error
func (ListSegments404JSONResponse) VisitListSegmentsResponse ¶
func (response ListSegments404JSONResponse) VisitListSegmentsResponse(w http.ResponseWriter) error
type ListSegmentsParams ¶
type ListSegmentsParams struct {
Date *openapi_types.Date `form:"date,omitempty" json:"date,omitempty"`
// Tz IANA timezone defining the day boundaries (e.g. Europe/Amsterdam); defaults to UTC
Tz *string `form:"tz,omitempty" json:"tz,omitempty"`
}
ListSegmentsParams defines parameters for ListSegments.
type ListSegmentsRequestObject ¶
type ListSegmentsRequestObject struct {
Camera string `json:"camera"`
Params ListSegmentsParams
}
type ListSegmentsResponseObject ¶
type ListSegmentsResponseObject interface {
VisitListSegmentsResponse(w http.ResponseWriter) error
}
type ListTokens200JSONResponse ¶
type ListTokens200JSONResponse TokenListResponse
func (ListTokens200JSONResponse) VisitListTokensResponse ¶
func (response ListTokens200JSONResponse) VisitListTokensResponse(w http.ResponseWriter) error
type ListTokensRequestObject ¶
type ListTokensRequestObject struct {
}
type ListTokensResponseObject ¶
type ListTokensResponseObject interface {
VisitListTokensResponse(w http.ResponseWriter) error
}
type ListUnmatchedFaces200JSONResponse ¶
type ListUnmatchedFaces200JSONResponse FaceListEnvelope
func (ListUnmatchedFaces200JSONResponse) VisitListUnmatchedFacesResponse ¶
func (response ListUnmatchedFaces200JSONResponse) VisitListUnmatchedFacesResponse(w http.ResponseWriter) error
type ListUnmatchedFacesParams ¶
type ListUnmatchedFacesParams struct {
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListUnmatchedFacesParams defines parameters for ListUnmatchedFaces.
type ListUnmatchedFacesRequestObject ¶
type ListUnmatchedFacesRequestObject struct {
Params ListUnmatchedFacesParams
}
type ListUnmatchedFacesResponseObject ¶
type ListUnmatchedFacesResponseObject interface {
VisitListUnmatchedFacesResponse(w http.ResponseWriter) error
}
type ListZones200JSONResponse ¶
type ListZones200JSONResponse ZoneListEnvelope
func (ListZones200JSONResponse) VisitListZonesResponse ¶
func (response ListZones200JSONResponse) VisitListZonesResponse(w http.ResponseWriter) error
type ListZones404JSONResponse ¶
type ListZones404JSONResponse Error
func (ListZones404JSONResponse) VisitListZonesResponse ¶
func (response ListZones404JSONResponse) VisitListZonesResponse(w http.ResponseWriter) error
type ListZonesRequestObject ¶
type ListZonesRequestObject struct {
Name string `json:"name"`
}
type ListZonesResponseObject ¶
type ListZonesResponseObject interface {
VisitListZonesResponse(w http.ResponseWriter) error
}
type Login200JSONResponse ¶
type Login200JSONResponse LoginResponse
func (Login200JSONResponse) VisitLoginResponse ¶
func (response Login200JSONResponse) VisitLoginResponse(w http.ResponseWriter) error
type Login401JSONResponse ¶
type Login401JSONResponse Error
func (Login401JSONResponse) VisitLoginResponse ¶
func (response Login401JSONResponse) VisitLoginResponse(w http.ResponseWriter) error
type Login429JSONResponse ¶
type Login429JSONResponse Error
func (Login429JSONResponse) VisitLoginResponse ¶
func (response Login429JSONResponse) VisitLoginResponse(w http.ResponseWriter) error
type LoginJSONRequestBody ¶
type LoginJSONRequestBody = LoginRequest
LoginJSONRequestBody defines body for Login for application/json ContentType.
type LoginRequest ¶
type LoginRequest struct {
Password string `json:"password"`
Remember *bool `json:"remember,omitempty"`
Username string `json:"username"`
}
LoginRequest defines model for LoginRequest.
type LoginRequestObject ¶
type LoginRequestObject struct {
Body *LoginJSONRequestBody
}
type LoginResponse ¶
type LoginResponse struct {
CsrfToken string `json:"csrf_token"`
ExpiresAt time.Time `json:"expires_at"`
Kind string `json:"kind"`
Username string `json:"username"`
}
LoginResponse defines model for LoginResponse.
type LoginResponseObject ¶
type LoginResponseObject interface {
VisitLoginResponse(w http.ResponseWriter) error
}
type Logout200JSONResponse ¶
type Logout200JSONResponse LogoutResponse
func (Logout200JSONResponse) VisitLogoutResponse ¶
func (response Logout200JSONResponse) VisitLogoutResponse(w http.ResponseWriter) error
type LogoutRequestObject ¶
type LogoutRequestObject struct {
}
type LogoutResponse ¶
type LogoutResponse struct {
Status LogoutResponseStatus `json:"status"`
}
LogoutResponse defines model for LogoutResponse.
type LogoutResponseObject ¶
type LogoutResponseObject interface {
VisitLogoutResponse(w http.ResponseWriter) error
}
type LogoutResponseStatus ¶
type LogoutResponseStatus string
LogoutResponseStatus defines model for LogoutResponse.Status.
const (
LoggedOut LogoutResponseStatus = "logged_out"
)
Defines values for LogoutResponseStatus.
func (LogoutResponseStatus) Valid ¶
func (e LogoutResponseStatus) Valid() bool
Valid indicates whether the value is a known member of the LogoutResponseStatus enum.
type MQTTPublisher ¶
type MQTTPublisher interface {
PublishSnapshot(cameraName, label string, jpegData []byte)
PublishDoorbell(cameraName, person string, jpegData []byte)
}
MQTTPublisher is the subset of mqtt.Client used by the API server.
type MergePeople200JSONResponse ¶
type MergePeople200JSONResponse StatusMerged
func (MergePeople200JSONResponse) VisitMergePeopleResponse ¶
func (response MergePeople200JSONResponse) VisitMergePeopleResponse(w http.ResponseWriter) error
type MergePeople400JSONResponse ¶
type MergePeople400JSONResponse Error
func (MergePeople400JSONResponse) VisitMergePeopleResponse ¶
func (response MergePeople400JSONResponse) VisitMergePeopleResponse(w http.ResponseWriter) error
type MergePeopleJSONRequestBody ¶
type MergePeopleJSONRequestBody = MergePeopleRequest
MergePeopleJSONRequestBody defines body for MergePeople for application/json ContentType.
type MergePeopleRequest ¶
type MergePeopleRequest struct {
SourceId int64 `json:"source_id"`
TargetId int64 `json:"target_id"`
}
MergePeopleRequest defines model for MergePeopleRequest.
type MergePeopleRequestObject ¶
type MergePeopleRequestObject struct {
Body *MergePeopleJSONRequestBody
}
type MergePeopleResponseObject ¶
type MergePeopleResponseObject interface {
VisitMergePeopleResponse(w http.ResponseWriter) error
}
type ObjectListEnvelope ¶
type ObjectListEnvelope struct {
HasMore bool `json:"has_more"`
Items []KnownObject `json:"items"`
Limit int `json:"limit"`
Offset int `json:"offset"`
Total int `json:"total"`
}
ObjectListEnvelope defines model for ObjectListEnvelope.
type ObjectReference ¶
type ObjectReference struct {
CreatedAt time.Time `json:"created_at"`
CropPath *string `json:"crop_path,omitempty"`
EventId *string `json:"event_id,omitempty"`
Id int64 `json:"id"`
ObjectId int64 `json:"object_id"`
}
ObjectReference defines model for ObjectReference.
type ObjectSighting ¶
type ObjectSighting struct {
Camera string `json:"camera"`
EventId string `json:"event_id"`
Id int64 `json:"id"`
ObjectId int64 `json:"object_id"`
ObjectName *string `json:"object_name,omitempty"`
Similarity float64 `json:"similarity"`
Timestamp time.Time `json:"timestamp"`
}
ObjectSighting defines model for ObjectSighting.
type PTZRequest ¶
type PTZRequest struct {
Action PTZRequestAction `json:"action"`
Direction *PTZRequestDirection `json:"direction,omitempty"`
}
PTZRequest defines model for PTZRequest.
type PTZRequestAction ¶
type PTZRequestAction string
PTZRequestAction defines model for PTZRequest.Action.
const ( Move PTZRequestAction = "move" Stop PTZRequestAction = "stop" Zoom PTZRequestAction = "zoom" )
Defines values for PTZRequestAction.
func (PTZRequestAction) Valid ¶
func (e PTZRequestAction) Valid() bool
Valid indicates whether the value is a known member of the PTZRequestAction enum.
type PTZRequestDirection ¶
type PTZRequestDirection string
PTZRequestDirection defines model for PTZRequest.Direction.
const ( Down PTZRequestDirection = "down" In PTZRequestDirection = "in" Left PTZRequestDirection = "left" Out PTZRequestDirection = "out" Right PTZRequestDirection = "right" Up PTZRequestDirection = "up" )
Defines values for PTZRequestDirection.
func (PTZRequestDirection) Valid ¶
func (e PTZRequestDirection) Valid() bool
Valid indicates whether the value is a known member of the PTZRequestDirection enum.
type Person ¶
type Person struct {
AppearanceCount int `json:"appearance_count"`
BestFaceId *int64 `json:"best_face_id,omitempty"`
CreatedAt time.Time `json:"created_at"`
FaceCount int `json:"face_count"`
Id int64 `json:"id"`
Ignore bool `json:"ignore"`
Name string `json:"name"`
SourceEventId *string `json:"source_event_id,omitempty"`
}
Person defines model for Person.
type PersonDetail ¶
type PersonDetail struct {
CreatedAt time.Time `json:"created_at"`
FaceCount int `json:"face_count"`
Faces []PersonDetailFace `json:"faces"`
Id int64 `json:"id"`
Ignore bool `json:"ignore"`
Name string `json:"name"`
}
PersonDetail defines model for PersonDetail.
type PersonDetailFace ¶
type PersonDetailFace struct {
Camera string `json:"camera"`
Confidence float64 `json:"confidence"`
CropPath string `json:"crop_path"`
Id int64 `json:"id"`
Similarity *float64 `json:"similarity,omitempty"`
Timestamp time.Time `json:"timestamp"`
}
PersonDetailFace defines model for PersonDetailFace.
type PersonEventListEnvelope ¶
type PersonEventListEnvelope struct {
HasMore bool `json:"has_more"`
Items []Event `json:"items"`
Limit int `json:"limit"`
Offset int `json:"offset"`
Total int `json:"total"`
}
PersonEventListEnvelope defines model for PersonEventListEnvelope.
type PersonListEnvelope ¶
type PersonListEnvelope struct {
HasMore bool `json:"has_more"`
Items []Person `json:"items"`
Limit int `json:"limit"`
Offset int `json:"offset"`
Total int `json:"total"`
}
PersonListEnvelope defines model for PersonListEnvelope.
type PostStorageCleanup200JSONResponse ¶
type PostStorageCleanup200JSONResponse struct {
Started *bool `json:"started,omitempty"`
}
func (PostStorageCleanup200JSONResponse) VisitPostStorageCleanupResponse ¶
func (response PostStorageCleanup200JSONResponse) VisitPostStorageCleanupResponse(w http.ResponseWriter) error
type PostStorageCleanup409Response ¶
type PostStorageCleanup409Response struct {
}
func (PostStorageCleanup409Response) VisitPostStorageCleanupResponse ¶
func (response PostStorageCleanup409Response) VisitPostStorageCleanupResponse(w http.ResponseWriter) error
type PostStorageCleanupRequestObject ¶
type PostStorageCleanupRequestObject struct {
}
type PostStorageCleanupResponseObject ¶
type PostStorageCleanupResponseObject interface {
VisitPostStorageCleanupResponse(w http.ResponseWriter) error
}
type PostStorageDelete200JSONResponse ¶
type PostStorageDelete200JSONResponse DeleteResult
func (PostStorageDelete200JSONResponse) VisitPostStorageDeleteResponse ¶
func (response PostStorageDelete200JSONResponse) VisitPostStorageDeleteResponse(w http.ResponseWriter) error
type PostStorageDelete400Response ¶
type PostStorageDelete400Response struct {
}
func (PostStorageDelete400Response) VisitPostStorageDeleteResponse ¶
func (response PostStorageDelete400Response) VisitPostStorageDeleteResponse(w http.ResponseWriter) error
type PostStorageDelete409Response ¶
type PostStorageDelete409Response struct {
}
func (PostStorageDelete409Response) VisitPostStorageDeleteResponse ¶
func (response PostStorageDelete409Response) VisitPostStorageDeleteResponse(w http.ResponseWriter) error
type PostStorageDelete422Response ¶
type PostStorageDelete422Response struct {
}
func (PostStorageDelete422Response) VisitPostStorageDeleteResponse ¶
func (response PostStorageDelete422Response) VisitPostStorageDeleteResponse(w http.ResponseWriter) error
type PostStorageDeleteJSONRequestBody ¶
type PostStorageDeleteJSONRequestBody = DeleteRequest
PostStorageDeleteJSONRequestBody defines body for PostStorageDelete for application/json ContentType.
type PostStorageDeleteParams ¶
type PostStorageDeleteParams struct {
DryRun *bool `form:"dry_run,omitempty" json:"dry_run,omitempty"`
}
PostStorageDeleteParams defines parameters for PostStorageDelete.
type PostStorageDeleteRequestObject ¶
type PostStorageDeleteRequestObject struct {
Params PostStorageDeleteParams
Body *PostStorageDeleteJSONRequestBody
}
type PostStorageDeleteResponseObject ¶
type PostStorageDeleteResponseObject interface {
VisitPostStorageDeleteResponse(w http.ResponseWriter) error
}
type PostTalkbackOffer200JSONResponse ¶
type PostTalkbackOffer200JSONResponse SDPAnswer
func (PostTalkbackOffer200JSONResponse) VisitPostTalkbackOfferResponse ¶
func (response PostTalkbackOffer200JSONResponse) VisitPostTalkbackOfferResponse(w http.ResponseWriter) error
type PostTalkbackOffer400JSONResponse ¶
type PostTalkbackOffer400JSONResponse Error
func (PostTalkbackOffer400JSONResponse) VisitPostTalkbackOfferResponse ¶
func (response PostTalkbackOffer400JSONResponse) VisitPostTalkbackOfferResponse(w http.ResponseWriter) error
type PostTalkbackOffer403JSONResponse ¶
type PostTalkbackOffer403JSONResponse Error
func (PostTalkbackOffer403JSONResponse) VisitPostTalkbackOfferResponse ¶
func (response PostTalkbackOffer403JSONResponse) VisitPostTalkbackOfferResponse(w http.ResponseWriter) error
type PostTalkbackOffer404JSONResponse ¶
type PostTalkbackOffer404JSONResponse Error
func (PostTalkbackOffer404JSONResponse) VisitPostTalkbackOfferResponse ¶
func (response PostTalkbackOffer404JSONResponse) VisitPostTalkbackOfferResponse(w http.ResponseWriter) error
type PostTalkbackOffer409JSONResponse ¶
type PostTalkbackOffer409JSONResponse Error
func (PostTalkbackOffer409JSONResponse) VisitPostTalkbackOfferResponse ¶
func (response PostTalkbackOffer409JSONResponse) VisitPostTalkbackOfferResponse(w http.ResponseWriter) error
type PostTalkbackOffer422JSONResponse ¶
type PostTalkbackOffer422JSONResponse Error
func (PostTalkbackOffer422JSONResponse) VisitPostTalkbackOfferResponse ¶
func (response PostTalkbackOffer422JSONResponse) VisitPostTalkbackOfferResponse(w http.ResponseWriter) error
type PostTalkbackOffer503JSONResponse ¶
type PostTalkbackOffer503JSONResponse Error
func (PostTalkbackOffer503JSONResponse) VisitPostTalkbackOfferResponse ¶
func (response PostTalkbackOffer503JSONResponse) VisitPostTalkbackOfferResponse(w http.ResponseWriter) error
type PostTalkbackOfferJSONRequestBody ¶
type PostTalkbackOfferJSONRequestBody = SDPOffer
PostTalkbackOfferJSONRequestBody defines body for PostTalkbackOffer for application/json ContentType.
type PostTalkbackOfferRequestObject ¶
type PostTalkbackOfferRequestObject struct {
Name string `json:"name"`
Body *PostTalkbackOfferJSONRequestBody
}
type PostTalkbackOfferResponseObject ¶
type PostTalkbackOfferResponseObject interface {
VisitPostTalkbackOfferResponse(w http.ResponseWriter) error
}
type PostWebRTCOffer200JSONResponse ¶
type PostWebRTCOffer200JSONResponse SDPAnswer
func (PostWebRTCOffer200JSONResponse) VisitPostWebRTCOfferResponse ¶
func (response PostWebRTCOffer200JSONResponse) VisitPostWebRTCOfferResponse(w http.ResponseWriter) error
type PostWebRTCOffer400JSONResponse ¶
type PostWebRTCOffer400JSONResponse Error
func (PostWebRTCOffer400JSONResponse) VisitPostWebRTCOfferResponse ¶
func (response PostWebRTCOffer400JSONResponse) VisitPostWebRTCOfferResponse(w http.ResponseWriter) error
type PostWebRTCOffer404JSONResponse ¶
type PostWebRTCOffer404JSONResponse Error
func (PostWebRTCOffer404JSONResponse) VisitPostWebRTCOfferResponse ¶
func (response PostWebRTCOffer404JSONResponse) VisitPostWebRTCOfferResponse(w http.ResponseWriter) error
type PostWebRTCOfferJSONRequestBody ¶
type PostWebRTCOfferJSONRequestBody = SDPOffer
PostWebRTCOfferJSONRequestBody defines body for PostWebRTCOffer for application/json ContentType.
type PostWebRTCOfferRequestObject ¶
type PostWebRTCOfferRequestObject struct {
Name string `json:"name"`
Body *PostWebRTCOfferJSONRequestBody
}
type PostWebRTCOfferResponseObject ¶
type PostWebRTCOfferResponseObject interface {
VisitPostWebRTCOfferResponse(w http.ResponseWriter) error
}
type PressDoorbell202JSONResponse ¶
type PressDoorbell202JSONResponse DoorbellResponse
func (PressDoorbell202JSONResponse) VisitPressDoorbellResponse ¶
func (response PressDoorbell202JSONResponse) VisitPressDoorbellResponse(w http.ResponseWriter) error
type PressDoorbell404JSONResponse ¶
type PressDoorbell404JSONResponse Error
func (PressDoorbell404JSONResponse) VisitPressDoorbellResponse ¶
func (response PressDoorbell404JSONResponse) VisitPressDoorbellResponse(w http.ResponseWriter) error
type PressDoorbell503JSONResponse ¶
type PressDoorbell503JSONResponse Error
func (PressDoorbell503JSONResponse) VisitPressDoorbellResponse ¶
func (response PressDoorbell503JSONResponse) VisitPressDoorbellResponse(w http.ResponseWriter) error
type PressDoorbellRequestObject ¶
type PressDoorbellRequestObject struct {
Name string `json:"name"`
}
type PressDoorbellResponseObject ¶
type PressDoorbellResponseObject interface {
VisitPressDoorbellResponse(w http.ResponseWriter) error
}
type ReadyCameraCheck ¶
ReadyCameraCheck defines model for ReadyCameraCheck.
type ReadyChecks ¶
type ReadyChecks struct {
Cameras ReadyCameraCheck `json:"cameras"`
Database string `json:"database"`
Initialized bool `json:"initialized"`
Storage *ReadyStorageCheck `json:"storage,omitempty"`
}
ReadyChecks defines model for ReadyChecks.
type ReadyStorageCheck ¶
type ReadyStorageCheck struct {
DiskLow *bool `json:"disk_low,omitempty"`
RecordingPaused *bool `json:"recording_paused,omitempty"`
}
ReadyStorageCheck defines model for ReadyStorageCheck.
type RecompressionStats ¶
type RecompressionStats struct {
BytesReclaimed int64 `json:"bytes_reclaimed"`
ClipsRecompressed int64 `json:"clips_recompressed"`
Enabled bool `json:"enabled"`
IsRunning bool `json:"is_running"`
LastRun *time.Time `json:"last_run,omitempty"`
SegmentsRecompressed int64 `json:"segments_recompressed"`
// TranscodeFailures Total recompression attempts that failed in this process lifetime.
TranscodeFailures int64 `json:"transcode_failures"`
// WorkerCrashes Transcode workers that terminated due to a native crash signal.
WorkerCrashes int64 `json:"worker_crashes"`
// WorkerTimeouts Transcode workers killed after exceeding the bounded runtime.
WorkerTimeouts int64 `json:"worker_timeouts"`
}
RecompressionStats defines model for RecompressionStats.
type RecordingCalendarResponse ¶
type RecordingCalendarResponse struct {
Days []int `json:"days"`
}
RecordingCalendarResponse defines model for RecordingCalendarResponse.
type RecordingSummaryCamera ¶
type RecordingSummaryCamera struct {
Name string `json:"name"`
Segments []RecordingSummaryCameraSegment `json:"segments"`
TotalBytes int64 `json:"total_bytes"`
}
RecordingSummaryCamera defines model for RecordingSummaryCamera.
type RecordingSummaryCameraSegment ¶
type RecordingSummaryCameraSegment struct {
EndTime time.Time `json:"end_time"`
SizeBytes int64 `json:"size_bytes"`
StartTime time.Time `json:"start_time"`
}
RecordingSummaryCameraSegment defines model for RecordingSummaryCameraSegment.
type RecordingSummaryResponse ¶
type RecordingSummaryResponse struct {
Cameras []RecordingSummaryCamera `json:"cameras"`
TotalBytes int64 `json:"total_bytes"`
}
RecordingSummaryResponse defines model for RecordingSummaryResponse.
type ReextractClip200JSONResponse ¶
type ReextractClip200JSONResponse ReextractClipResponse
func (ReextractClip200JSONResponse) VisitReextractClipResponse ¶
func (response ReextractClip200JSONResponse) VisitReextractClipResponse(w http.ResponseWriter) error
type ReextractClip404JSONResponse ¶
type ReextractClip404JSONResponse Error
func (ReextractClip404JSONResponse) VisitReextractClipResponse ¶
func (response ReextractClip404JSONResponse) VisitReextractClipResponse(w http.ResponseWriter) error
type ReextractClipRequestObject ¶
type ReextractClipRequestObject struct {
Id string `json:"id"`
}
type ReextractClipResponse ¶
ReextractClipResponse defines model for ReextractClipResponse.
type ReextractClipResponseObject ¶
type ReextractClipResponseObject interface {
VisitReextractClipResponse(w http.ResponseWriter) error
}
type ReferenceListEnvelope ¶
type ReferenceListEnvelope struct {
HasMore bool `json:"has_more"`
Items []ObjectReference `json:"items"`
Limit int `json:"limit"`
Offset int `json:"offset"`
Total int `json:"total"`
}
ReferenceListEnvelope defines model for ReferenceListEnvelope.
type RequiredHeaderError ¶
func (*RequiredHeaderError) Error ¶
func (e *RequiredHeaderError) Error() string
func (*RequiredHeaderError) Unwrap ¶
func (e *RequiredHeaderError) Unwrap() error
type RequiredParamError ¶
type RequiredParamError struct {
ParamName string
}
func (*RequiredParamError) Error ¶
func (e *RequiredParamError) Error() string
type RestoreActivityEvidence200JSONResponse ¶
type RestoreActivityEvidence200JSONResponse Activity
func (RestoreActivityEvidence200JSONResponse) VisitRestoreActivityEvidenceResponse ¶
func (response RestoreActivityEvidence200JSONResponse) VisitRestoreActivityEvidenceResponse(w http.ResponseWriter) error
type RestoreActivityEvidence404JSONResponse ¶
type RestoreActivityEvidence404JSONResponse Error
func (RestoreActivityEvidence404JSONResponse) VisitRestoreActivityEvidenceResponse ¶
func (response RestoreActivityEvidence404JSONResponse) VisitRestoreActivityEvidenceResponse(w http.ResponseWriter) error
type RestoreActivityEvidenceResponseObject ¶
type RestoreActivityEvidenceResponseObject interface {
VisitRestoreActivityEvidenceResponse(w http.ResponseWriter) error
}
type SegmentInfo ¶
type SegmentInfo struct {
EndTime time.Time `json:"end_time"`
Id int64 `json:"id"`
SizeBytes int64 `json:"size_bytes"`
StartTime time.Time `json:"start_time"`
}
SegmentInfo defines model for SegmentInfo.
type SegmentListEnvelope ¶
type SegmentListEnvelope struct {
HasMore bool `json:"has_more"`
Items []SegmentInfo `json:"items"`
Limit int `json:"limit"`
Offset int `json:"offset"`
Total int `json:"total"`
}
SegmentListEnvelope defines model for SegmentListEnvelope.
type SendPTZCommand200JSONResponse ¶
type SendPTZCommand200JSONResponse StatusOk
func (SendPTZCommand200JSONResponse) VisitSendPTZCommandResponse ¶
func (response SendPTZCommand200JSONResponse) VisitSendPTZCommandResponse(w http.ResponseWriter) error
type SendPTZCommand400JSONResponse ¶
type SendPTZCommand400JSONResponse Error
func (SendPTZCommand400JSONResponse) VisitSendPTZCommandResponse ¶
func (response SendPTZCommand400JSONResponse) VisitSendPTZCommandResponse(w http.ResponseWriter) error
type SendPTZCommand404JSONResponse ¶
type SendPTZCommand404JSONResponse Error
func (SendPTZCommand404JSONResponse) VisitSendPTZCommandResponse ¶
func (response SendPTZCommand404JSONResponse) VisitSendPTZCommandResponse(w http.ResponseWriter) error
type SendPTZCommandJSONRequestBody ¶
type SendPTZCommandJSONRequestBody = PTZRequest
SendPTZCommandJSONRequestBody defines body for SendPTZCommand for application/json ContentType.
type SendPTZCommandRequestObject ¶
type SendPTZCommandRequestObject struct {
Name string `json:"name"`
Body *SendPTZCommandJSONRequestBody
}
type SendPTZCommandResponseObject ¶
type SendPTZCommandResponseObject interface {
VisitSendPTZCommandResponse(w http.ResponseWriter) error
}
type ServeMux ¶
type ServeMux interface {
HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
ServeHTTP(w http.ResponseWriter, r *http.Request)
}
ServeMux is an abstraction of http.ServeMux.
type Server ¶
type Server struct {
ObjectMatchThreshold float64
// contains filtered or unexported fields
}
func NewSetupMode ¶
func NewSetupMode(cfg config.APIConfig, db *storage.DB, configPath string, setupDone chan struct{}) *Server
NewSetupMode creates a Server that only serves setup/onboarding endpoints. No auth middleware is applied. The setupDone channel is closed when setup completes.
func (*Server) AddCameraManage ¶
func (s *Server) AddCameraManage(w http.ResponseWriter, r *http.Request)
func (*Server) AddObjectReference ¶
func (*Server) AnswerDoorbell ¶
func (s *Server) AnswerDoorbell(w http.ResponseWriter, r *http.Request, name string, eventID string)
AnswerDoorbell acknowledges a doorbell ring. Idempotent: UpdateEventAnswered only sets the columns while answered_at IS NULL in the DB, so the first answerer wins. The response always reflects the persisted answer state.
func (*Server) AssignFace ¶
func (*Server) AssignPersonToEvent ¶
func (*Server) BackfillFaces ¶
func (s *Server) BackfillFaces(w http.ResponseWriter, r *http.Request)
func (*Server) BroadcastActivitySSE ¶
BroadcastActivitySSE publishes an incident lifecycle change to review UIs.
func (*Server) BroadcastDoorbellPersonSSE ¶
BroadcastDoorbellPersonSSE updates an open doorbell banner with the recognized person once async face recognition resolves it.
func (*Server) BroadcastDoorbellSSE ¶
BroadcastDoorbellSSE pushes a doorbell ring to connected browsers (banner).
func (*Server) ChangePassword ¶
func (s *Server) ChangePassword(w http.ResponseWriter, r *http.Request)
func (*Server) CheckForUpdates ¶
func (s *Server) CheckForUpdates(w http.ResponseWriter, _ *http.Request)
func (*Server) CreateObject ¶
func (s *Server) CreateObject(w http.ResponseWriter, r *http.Request)
func (*Server) CreateObjectFromCameraTrack ¶
func (s *Server) CreateObjectFromCameraTrack(w http.ResponseWriter, r *http.Request, cameraName string)
CreateObjectFromCameraTrack names a live tracked object directly from the camera overlay. The request carries a normalized 0..1 box (matching what the SSE detection stream emits). The handler grabs the camera's most recent decoded frame, computes a pixel-space box from the normalized coords, embeds the crop with OSNet, and persists a new KnownObject. It also pushes the name back to the camera so the live overlay reflects the change on the very next frame, and schedules a re-match of recent unmatched events.
func (*Server) CreatePushSubscription ¶
func (s *Server) CreatePushSubscription(w http.ResponseWriter, r *http.Request)
CreatePushSubscription registers a new browser push subscription for the authenticated user. Endpoint and keys are validated before persisting.
func (*Server) CreateToken ¶
func (s *Server) CreateToken(w http.ResponseWriter, r *http.Request)
func (*Server) CreateZone ¶
func (*Server) DeleteObject ¶
func (*Server) DeleteObjectReference ¶
func (*Server) DeletePerson ¶
func (*Server) DeletePushSubscription ¶
func (s *Server) DeletePushSubscription(w http.ResponseWriter, r *http.Request)
DeletePushSubscription removes a subscription owned by the caller. A mismatch (wrong user, wrong id, or nonexistent id) always returns 404 — the spec deliberately refuses to distinguish "not yours" from "not found" to avoid leaking existence to other users.
func (*Server) DeleteToken ¶
func (*Server) DeleteZone ¶
func (*Server) DiscoverMQTTBrokers ¶
func (s *Server) DiscoverMQTTBrokers(w http.ResponseWriter, _ *http.Request)
func (*Server) DismissSighting ¶
func (*Server) DismissUpdate ¶
func (s *Server) DismissUpdate(w http.ResponseWriter, _ *http.Request)
func (*Server) ExcludeActivityEvidence ¶
func (*Server) ExportRecording ¶
func (s *Server) ExportRecording(w http.ResponseWriter, r *http.Request, camera string, params ExportRecordingParams)
func (*Server) GetActivity ¶
func (*Server) GetActivityCounts ¶
func (s *Server) GetActivityCounts(w http.ResponseWriter, r *http.Request)
func (*Server) GetAuthInfo ¶
func (s *Server) GetAuthInfo(w http.ResponseWriter, r *http.Request)
func (*Server) GetCameraPlayback ¶
func (s *Server) GetCameraPlayback(w http.ResponseWriter, r *http.Request, name string, params GetCameraPlaybackParams)
func (*Server) GetCameraSnapshot ¶
func (*Server) GetCameraThumbnail ¶
func (s *Server) GetCameraThumbnail(w http.ResponseWriter, r *http.Request, name string, params GetCameraThumbnailParams)
func (*Server) GetCameraTimeline ¶
func (s *Server) GetCameraTimeline(w http.ResponseWriter, r *http.Request, name string, params GetCameraTimelineParams)
func (*Server) GetDetectSettings ¶
func (s *Server) GetDetectSettings(w http.ResponseWriter, _ *http.Request)
func (*Server) GetEventClip ¶
func (*Server) GetEventCounts ¶
func (s *Server) GetEventCounts(w http.ResponseWriter, _ *http.Request, params GetEventCountsParams)
func (*Server) GetEventDetectionCrop ¶
func (*Server) GetEventSnapshot ¶
func (s *Server) GetEventSnapshot(w http.ResponseWriter, r *http.Request, id string, params GetEventSnapshotParams)
func (*Server) GetEventStream ¶
func (s *Server) GetEventStream(w http.ResponseWriter, r *http.Request)
func (*Server) GetFaceCrop ¶
func (*Server) GetHealthLive ¶
func (s *Server) GetHealthLive(w http.ResponseWriter, _ *http.Request)
func (*Server) GetHealthReady ¶
func (s *Server) GetHealthReady(w http.ResponseWriter, _ *http.Request)
func (*Server) GetLiveHLS ¶
func (*Server) GetLiveHLSInit ¶
func (*Server) GetLiveHLSSegment ¶
func (*Server) GetMQTTSettings ¶
func (s *Server) GetMQTTSettings(w http.ResponseWriter, _ *http.Request)
func (*Server) GetMSEWebSocket ¶
func (*Server) GetMetrics ¶
func (s *Server) GetMetrics(w http.ResponseWriter, _ *http.Request)
func (*Server) GetObjectCrop ¶
func (s *Server) GetObjectCrop(w http.ResponseWriter, r *http.Request, id int64, params GetObjectCropParams)
func (*Server) GetOpenAPISpec ¶
func (s *Server) GetOpenAPISpec(w http.ResponseWriter, _ *http.Request)
func (*Server) GetOpenH264Status ¶
func (s *Server) GetOpenH264Status(w http.ResponseWriter, _ *http.Request)
func (*Server) GetPushPrefs ¶
func (s *Server) GetPushPrefs(w http.ResponseWriter, r *http.Request)
GetPushPrefs returns the caller's current notification preferences. The cameras map is seeded with all known (camera, class) pairs as enabled, then flipped false for any explicit disable rows from notification_prefs.
func (*Server) GetPushSnapshot ¶
func (s *Server) GetPushSnapshot(w http.ResponseWriter, r *http.Request)
GetPushSnapshot serves an event snapshot bypassing session auth, gated only by an HMAC signature in the query string. Used by iOS push notification thumbnails, which iOS fetches without cookies in SW scope. The signature is minted by the dispatcher when building the push payload; see notify.SnapshotSigner.
func (*Server) GetRecordingSettings ¶
func (s *Server) GetRecordingSettings(w http.ResponseWriter, _ *http.Request)
func (*Server) GetRecordingsCalendar ¶
func (s *Server) GetRecordingsCalendar(w http.ResponseWriter, r *http.Request, params GetRecordingsCalendarParams)
func (*Server) GetRecordingsSummary ¶
func (s *Server) GetRecordingsSummary(w http.ResponseWriter, r *http.Request, params GetRecordingsSummaryParams)
func (*Server) GetSegment ¶
func (*Server) GetSegmentHLS ¶
func (s *Server) GetSegmentHLS(w http.ResponseWriter, r *http.Request, name string, id int64, segNum int)
GetSegmentHLS serves a re-segmented fMP4 chunk for HLS playback. It reads the raw moof+mdat bytes from disk, unmarshals them, and re-marshals as clean fMP4 that MSE/hls.js can consume.
func (*Server) GetSegmentInit ¶
GetSegmentInit serves the fMP4 init segment (ftyp+moov) for HLS playback.
func (*Server) GetStorage ¶
func (s *Server) GetStorage(w http.ResponseWriter, r *http.Request)
GetStorage returns the cached storage breakdown for all cameras.
func (*Server) GetStorageAudit ¶
func (s *Server) GetStorageAudit(w http.ResponseWriter, r *http.Request, params GetStorageAuditParams)
GetStorageAudit returns the most recent storage-audit entries (default 50, max 500).
func (*Server) GetStreamingCapabilities ¶
func (s *Server) GetStreamingCapabilities(w http.ResponseWriter, r *http.Request)
GetStreamingCapabilities returns the agent-readable inventory of every consumable stream URL per camera. RTSP URLs use the request host so the value is dialable by the same client that reached the API.
func (*Server) GetTalkbackCapabilities ¶
func (*Server) GetUpdateStatus ¶
func (s *Server) GetUpdateStatus(w http.ResponseWriter, _ *http.Request)
func (*Server) GetVAPIDPublicKey ¶
func (s *Server) GetVAPIDPublicKey(w http.ResponseWriter, r *http.Request)
GetVAPIDPublicKey returns the server's VAPID public key so the browser's service worker can construct a PushSubscription.
func (*Server) GetWebRTCICEServers ¶
func (s *Server) GetWebRTCICEServers(w http.ResponseWriter, r *http.Request)
GetWebRTCICEServers returns the STUN/TURN servers a browser should configure on its RTCPeerConnection. ICE configuration is per-peer and the browser is the offerer, so the server's answer cannot signal these - the client fetches them here. The list mirrors webrtc.ice_servers from config and is empty by default (privacy-first: no viewer IP leaks to a third-party STUN operator).
func (*Server) GetZonePresence ¶
func (*Server) IdentifyEvent ¶
func (*Server) IgnoreFace ¶
func (*Server) InstallOpenH264 ¶
func (s *Server) InstallOpenH264(w http.ResponseWriter, r *http.Request)
func (*Server) ListActivities ¶
func (s *Server) ListActivities(w http.ResponseWriter, r *http.Request, params ListActivitiesParams)
func (*Server) ListCameras ¶
func (s *Server) ListCameras(w http.ResponseWriter, _ *http.Request)
func (*Server) ListCamerasManage ¶
func (s *Server) ListCamerasManage(w http.ResponseWriter, _ *http.Request)
func (*Server) ListEvents ¶
func (s *Server) ListEvents(w http.ResponseWriter, r *http.Request, params ListEventsParams)
func (*Server) ListObjectReferences ¶
func (*Server) ListObjectSightings ¶
func (s *Server) ListObjectSightings(w http.ResponseWriter, r *http.Request, id int64, params ListObjectSightingsParams)
func (*Server) ListObjects ¶
func (s *Server) ListObjects(w http.ResponseWriter, r *http.Request)
func (*Server) ListPeople ¶
func (s *Server) ListPeople(w http.ResponseWriter, r *http.Request)
func (*Server) ListPersonEvents ¶
func (*Server) ListPersonFaces ¶
func (s *Server) ListPersonFaces(w http.ResponseWriter, r *http.Request, id int64, params ListPersonFacesParams)
func (*Server) ListPushSubscriptions ¶
func (s *Server) ListPushSubscriptions(w http.ResponseWriter, r *http.Request)
ListPushSubscriptions lists the caller's own push subscriptions. The raw endpoint and keys are never returned — only metadata the user needs to identify and manage their devices.
func (*Server) ListSegments ¶
func (s *Server) ListSegments(w http.ResponseWriter, r *http.Request, camera string, params ListSegmentsParams)
func (*Server) ListTokens ¶
func (s *Server) ListTokens(w http.ResponseWriter, r *http.Request)
func (*Server) ListUnmatchedFaces ¶
func (s *Server) ListUnmatchedFaces(w http.ResponseWriter, r *http.Request, params ListUnmatchedFacesParams)
func (*Server) MergePeople ¶
func (s *Server) MergePeople(w http.ResponseWriter, r *http.Request)
func (*Server) PostStorageCleanup ¶
func (s *Server) PostStorageCleanup(w http.ResponseWriter, r *http.Request)
PostStorageCleanup triggers an async retention-cleanup pass. Returns 200 {"started":true} immediately, or 409 if a cleanup is already running.
func (*Server) PostStorageDelete ¶
func (s *Server) PostStorageDelete(w http.ResponseWriter, r *http.Request, params PostStorageDeleteParams)
PostStorageDelete validates the request, delegates to recorder.DeleteStorage, maps recording-layer errors to HTTP statuses, and writes an audit row on successful non-dry-run deletions.
func (*Server) PostTalkbackOffer ¶
func (*Server) PostWebRTCOffer ¶
func (*Server) PressDoorbell ¶
func (*Server) PublishDetection ¶
func (s *Server) PublishDetection(frame camera.DetectionFrame)
PublishDetection is called from the main event loop to push a frame onto the hub for fan-out to subscribers.
func (*Server) PutPushPrefs ¶
func (s *Server) PutPushPrefs(w http.ResponseWriter, r *http.Request)
PutPushPrefs updates the caller's notification preferences. Muted flag and cooldown seconds live in kv_store; per-(camera,class) rows live in notification_prefs.
func (*Server) RecordDoorbellPress ¶
RecordDoorbellPress increments the doorbell press metric for a camera.
func (*Server) ReextractClip ¶
func (*Server) RemoveCameraManage ¶
func (s *Server) RemoveCameraManage(w http.ResponseWriter, r *http.Request)
func (*Server) RestoreActivityEvidence ¶
func (*Server) SendPTZCommand ¶
func (*Server) SetCameraNames ¶
SetCameraNames caches the list of configured camera names used by the push preferences handler to seed its (camera × class) response grid. Called from main.go after config load.
func (*Server) SetConfigPath ¶
func (*Server) SetContext ¶
SetContext sets the application lifetime context used for background operations triggered by API requests (e.g. manual recompression).
func (*Server) SetDetector ¶
func (*Server) SetMQTT ¶
func (s *Server) SetMQTT(publisher MQTTPublisher)
func (*Server) SetMQTTConfig ¶
func (s *Server) SetMQTTConfig(cfg config.MQTTConfig)
func (*Server) SetMQTTEnabled ¶
func (*Server) SetNotifier ¶
func (s *Server) SetNotifier(n *notify.NotificationDispatcher)
SetNotifier wires the push notification dispatcher. May be called with nil to keep push disabled — for example, when VAPID setup failed but the operator still wants the rest of the API to come up.
func (*Server) SetObjectThumbnail ¶
SetObjectThumbnail replaces the avatar of a known object using either an event snapshot (re-cuts the bbox) or an existing reference (copies its crop).
func (*Server) SetRTSPServerConfig ¶
func (s *Server) SetRTSPServerConfig(cfg config.RTSPServerConfig)
func (*Server) SetRecordingConfig ¶
func (s *Server) SetRecordingConfig(cfg config.RecordingConfig)
func (*Server) SetSubsystems ¶
func (s *Server) SetSubsystems(cameras *camera.Manager, recorder *recording.Recorder, hub *rtsp.Hub, faceRecognizer *detect.FaceRecognizer, objectEmbedder *detect.ObjectEmbedder, snapshotPath string, faceCropDir string, cameraConfigs []config.CameraConfig, ptzClients map[string]*camera.PTZClient, webrtcCfg config.WebRTCConfig)
func (*Server) SetTracingEnabled ¶
SetTracingEnabled toggles otelhttp request spans on the API handler. When false (the default) the handler is not wrapped, so there is zero overhead.
func (*Server) SetUpdateChecker ¶
func (*Server) SetVersion ¶
func (*Server) StartCamera ¶
StartCamera handles POST /api/cameras/{name}/start.
func (*Server) StopCamera ¶
StopCamera handles POST /api/cameras/{name}/stop.
func (*Server) StreamCameraDetections ¶
func (s *Server) StreamCameraDetections(w http.ResponseWriter, r *http.Request)
StreamCameraDetections serves a per-camera Server-Sent Events stream of DetectionFrame values for the live bounding-box overlay.
func (*Server) TestMQTTConnection ¶
func (s *Server) TestMQTTConnection(w http.ResponseWriter, r *http.Request)
func (*Server) TestPush ¶
func (s *Server) TestPush(w http.ResponseWriter, r *http.Request)
TestPush sends a delivery check to every subscription owned by the caller. The latest retained snapshot from the first configured camera is included when available; otherwise clients use the normal Vedetta icon fallback.
func (*Server) TestRTSPConnection ¶
func (s *Server) TestRTSPConnection(w http.ResponseWriter, r *http.Request)
TestRTSPConnection dials an RTSP URL (DESCRIBE only) and reports codec, resolution, and audio info. Used by the UI "Test connection" button.
func (*Server) TrackPerson ¶
func (*Server) TransitionToFull ¶
func (*Server) TriggerRecompression ¶
func (s *Server) TriggerRecompression(w http.ResponseWriter, r *http.Request)
func (*Server) UpdateCameraManage ¶
func (s *Server) UpdateCameraManage(w http.ResponseWriter, r *http.Request)
func (*Server) UpdateDetectSettings ¶
func (s *Server) UpdateDetectSettings(w http.ResponseWriter, r *http.Request)
func (*Server) UpdateMQTTSettings ¶
func (s *Server) UpdateMQTTSettings(w http.ResponseWriter, r *http.Request)
func (*Server) UpdateObject ¶
func (*Server) UpdatePerson ¶
func (*Server) UpdateRecordingSettings ¶
func (s *Server) UpdateRecordingSettings(w http.ResponseWriter, r *http.Request)
func (*Server) UpdateZone ¶
type ServerInterface ¶
type ServerInterface interface {
// List review activities
// (GET /api/activities)
ListActivities(w http.ResponseWriter, r *http.Request, params ListActivitiesParams)
// Get activity totals
// (GET /api/activities/counts)
GetActivityCounts(w http.ResponseWriter, r *http.Request)
// Get an activity and all supporting evidence
// (GET /api/activities/{id})
GetActivity(w http.ResponseWriter, r *http.Request, id string)
// Exclude unrelated evidence from an activity
// (POST /api/activities/{id}/evidence/{eventId}/exclude)
ExcludeActivityEvidence(w http.ResponseWriter, r *http.Request, id string, eventId string)
// Restore excluded evidence to an activity
// (POST /api/activities/{id}/evidence/{eventId}/restore)
RestoreActivityEvidence(w http.ResponseWriter, r *http.Request, id string, eventId string)
// Change the current user's password
// (POST /api/auth/change-password)
ChangePassword(w http.ResponseWriter, r *http.Request)
// Authenticate with username and password
// (POST /api/auth/login)
Login(w http.ResponseWriter, r *http.Request)
// End the current session
// (POST /api/auth/logout)
Logout(w http.ResponseWriter, r *http.Request)
// Get the current authenticated principal
// (GET /api/auth/me)
GetAuthMe(w http.ResponseWriter, r *http.Request)
// List all cameras
// (GET /api/cameras)
ListCameras(w http.ResponseWriter, r *http.Request)
// Get camera detail
// (GET /api/cameras/{name})
GetCamera(w http.ResponseWriter, r *http.Request, name string)
// Trigger a doorbell press event
// (POST /api/cameras/{name}/doorbell)
PressDoorbell(w http.ResponseWriter, r *http.Request, name string)
// Acknowledge (answer) a doorbell ring
// (POST /api/cameras/{name}/doorbell/{event_id}/answer)
AnswerDoorbell(w http.ResponseWriter, r *http.Request, name string, eventId string)
// Live HLS playlist (low-latency fMP4/CMAF)
// (GET /api/cameras/{name}/live.m3u8)
GetLiveHLS(w http.ResponseWriter, r *http.Request, name string)
// Serve the fMP4 init segment for the live HLS stream
// (GET /api/cameras/{name}/live/init.mp4)
GetLiveHLSInit(w http.ResponseWriter, r *http.Request, name string)
// Serve a live fMP4 media segment
// (GET /api/cameras/{name}/live/{segNum})
GetLiveHLSSegment(w http.ResponseWriter, r *http.Request, name string, segNum int64)
// MJPEG live stream
// (GET /api/cameras/{name}/mjpeg)
GetMJPEG(w http.ResponseWriter, r *http.Request, name string)
// WebSocket endpoint for MSE live streaming
// (GET /api/cameras/{name}/mse/ws)
GetMSEWebSocket(w http.ResponseWriter, r *http.Request, name string)
// Name a live tracked object on this camera (from the live overlay)
// (POST /api/cameras/{name}/objects)
CreateObjectFromCameraTrack(w http.ResponseWriter, r *http.Request, name string)
// Generate HLS playlist for camera playback
// (GET /api/cameras/{name}/playback.m3u8)
GetCameraPlayback(w http.ResponseWriter, r *http.Request, name string, params GetCameraPlaybackParams)
// Send a PTZ command to a camera
// (POST /api/cameras/{name}/ptz)
SendPTZCommand(w http.ResponseWriter, r *http.Request, name string)
// Serve a full recording segment as MP4
// (GET /api/cameras/{name}/segments/{id})
GetSegment(w http.ResponseWriter, r *http.Request, name string, id int64)
// Serve the fMP4 init segment for HLS playback
// (GET /api/cameras/{name}/segments/{id}/hls/init.mp4)
GetSegmentInit(w http.ResponseWriter, r *http.Request, name string, id int64)
// Serve a re-segmented fMP4 chunk for HLS playback
// (GET /api/cameras/{name}/segments/{id}/hls/{segNum})
GetSegmentHLS(w http.ResponseWriter, r *http.Request, name string, id int64, segNum int)
// Get live camera snapshot
// (GET /api/cameras/{name}/snapshot)
GetCameraSnapshot(w http.ResponseWriter, r *http.Request, name string)
// Start a stopped camera (reconnect RTSP, resume detection and recording)
// (POST /api/cameras/{name}/start)
StartCamera(w http.ResponseWriter, r *http.Request, name string)
// Stop a camera (disconnect RTSP, stop detection and recording)
// (POST /api/cameras/{name}/stop)
StopCamera(w http.ResponseWriter, r *http.Request, name string)
// Probe the camera's ONVIF audio return channel
// (GET /api/cameras/{name}/talkback/capabilities)
GetTalkbackCapabilities(w http.ResponseWriter, r *http.Request, name string)
// Start microphone-only WebRTC talkback to an ONVIF backchannel
// (POST /api/cameras/{name}/talkback/offer)
PostTalkbackOffer(w http.ResponseWriter, r *http.Request, name string)
// Get recording thumbnail at a given time
// (GET /api/cameras/{name}/thumbnail)
GetCameraThumbnail(w http.ResponseWriter, r *http.Request, name string, params GetCameraThumbnailParams)
// Get timeline data for a camera on a given date
// (GET /api/cameras/{name}/timeline)
GetCameraTimeline(w http.ResponseWriter, r *http.Request, name string, params GetCameraTimelineParams)
// Send a WebRTC SDP offer and receive an SDP answer
// (POST /api/cameras/{name}/webrtc/offer)
PostWebRTCOffer(w http.ResponseWriter, r *http.Request, name string)
// List zones for a camera
// (GET /api/cameras/{name}/zones)
ListZones(w http.ResponseWriter, r *http.Request, name string)
// Create a zone for a camera
// (POST /api/cameras/{name}/zones)
CreateZone(w http.ResponseWriter, r *http.Request, name string)
// Delete a zone
// (DELETE /api/cameras/{name}/zones/{zone})
DeleteZone(w http.ResponseWriter, r *http.Request, name string, zone string)
// Update a zone
// (PUT /api/cameras/{name}/zones/{zone})
UpdateZone(w http.ResponseWriter, r *http.Request, name string, zone string)
// Get presence state for a zone
// (GET /api/cameras/{name}/zones/{zone}/presence)
GetZonePresence(w http.ResponseWriter, r *http.Request, name string, zone string)
// List detection events
// (GET /api/events)
ListEvents(w http.ResponseWriter, r *http.Request, params ListEventsParams)
// Get event counts by label and camera
// (GET /api/events/counts)
GetEventCounts(w http.ResponseWriter, r *http.Request, params GetEventCountsParams)
// Server-sent event stream
// (GET /api/events/stream)
GetEventStream(w http.ResponseWriter, r *http.Request)
// Get a single event
// (GET /api/events/{id})
GetEvent(w http.ResponseWriter, r *http.Request, id string)
// Assign a known person to an event or ignore it
// (POST /api/events/{id}/assign-person)
AssignPersonToEvent(w http.ResponseWriter, r *http.Request, id string)
// Download event video clip
// (GET /api/events/{id}/clip)
GetEventClip(w http.ResponseWriter, r *http.Request, id string)
// Re-extract event clip from recording segments
// (POST /api/events/{id}/clip)
ReextractClip(w http.ResponseWriter, r *http.Request, id string)
// Get cropped detection region from event snapshot
// (GET /api/events/{id}/detection-crop)
GetEventDetectionCrop(w http.ResponseWriter, r *http.Request, id string)
// Identify object in event using re-identification embeddings
// (POST /api/events/{id}/identify)
IdentifyEvent(w http.ResponseWriter, r *http.Request, id string)
// Get event snapshot image with bounding box overlay
// (GET /api/events/{id}/snapshot)
GetEventSnapshot(w http.ResponseWriter, r *http.Request, id string, params GetEventSnapshotParams)
// Create a person record from an event detection
// (POST /api/events/{id}/track-person)
TrackPerson(w http.ResponseWriter, r *http.Request, id string)
// Scan existing snapshots for faces
// (POST /api/faces/backfill)
BackfillFaces(w http.ResponseWriter, r *http.Request)
// List faces not assigned to any person
// (GET /api/faces/unmatched)
ListUnmatchedFaces(w http.ResponseWriter, r *http.Request, params ListUnmatchedFacesParams)
// Assign a face to a person
// (PUT /api/faces/{id}/assign)
AssignFace(w http.ResponseWriter, r *http.Request, id int64)
// Get cropped face image
// (GET /api/faces/{id}/crop)
GetFaceCrop(w http.ResponseWriter, r *http.Request, id int64)
// Delete/ignore a face
// (POST /api/faces/{id}/ignore)
IgnoreFace(w http.ResponseWriter, r *http.Request, id int64)
// Full health check
// (GET /api/health)
GetHealth(w http.ResponseWriter, r *http.Request)
// Liveness probe
// (GET /api/health/live)
GetHealthLive(w http.ResponseWriter, r *http.Request)
// Readiness probe
// (GET /api/health/ready)
GetHealthReady(w http.ResponseWriter, r *http.Request)
// List all known objects
// (GET /api/objects)
ListObjects(w http.ResponseWriter, r *http.Request)
// Create a known object from an event detection
// (POST /api/objects)
CreateObject(w http.ResponseWriter, r *http.Request)
// Delete an object reference image
// (DELETE /api/objects/references/{id})
DeleteObjectReference(w http.ResponseWriter, r *http.Request, id int64)
// Dismiss an object sighting
// (DELETE /api/objects/sightings/{id})
DismissSighting(w http.ResponseWriter, r *http.Request, id int64)
// Delete a known object
// (DELETE /api/objects/{id})
DeleteObject(w http.ResponseWriter, r *http.Request, id int64)
// Update a known object's name or match threshold
// (PUT /api/objects/{id})
UpdateObject(w http.ResponseWriter, r *http.Request, id int64)
// Get cropped image of a known object
// (GET /api/objects/{id}/crop)
GetObjectCrop(w http.ResponseWriter, r *http.Request, id int64, params GetObjectCropParams)
// List reference images for a known object
// (GET /api/objects/{id}/references)
ListObjectReferences(w http.ResponseWriter, r *http.Request, id int64)
// Add a reference image to a known object from an event
// (POST /api/objects/{id}/references)
AddObjectReference(w http.ResponseWriter, r *http.Request, id int64)
// List sightings of a known object
// (GET /api/objects/{id}/sightings)
ListObjectSightings(w http.ResponseWriter, r *http.Request, id int64, params ListObjectSightingsParams)
// Set the avatar/thumbnail of a known object from an event or reference
// (POST /api/objects/{id}/thumbnail)
SetObjectThumbnail(w http.ResponseWriter, r *http.Request, id int64)
// OpenAPI specification
// (GET /api/openapi.json)
GetOpenAPISpec(w http.ResponseWriter, r *http.Request)
// List all known people
// (GET /api/people)
ListPeople(w http.ResponseWriter, r *http.Request)
// Merge two people into one
// (POST /api/people/merge)
MergePeople(w http.ResponseWriter, r *http.Request)
// Delete a person
// (DELETE /api/people/{id})
DeletePerson(w http.ResponseWriter, r *http.Request, id int64)
// Get person detail with recent faces
// (GET /api/people/{id})
GetPerson(w http.ResponseWriter, r *http.Request, id int64)
// Update a person's name or ignore status
// (PUT /api/people/{id})
UpdatePerson(w http.ResponseWriter, r *http.Request, id int64)
// List events where this person was detected
// (GET /api/people/{id}/events)
ListPersonEvents(w http.ResponseWriter, r *http.Request, id int64)
// List faces belonging to a person
// (GET /api/people/{id}/faces)
ListPersonFaces(w http.ResponseWriter, r *http.Request, id int64, params ListPersonFacesParams)
// Get days with recordings for a given month
// (GET /api/recordings/calendar)
GetRecordingsCalendar(w http.ResponseWriter, r *http.Request, params GetRecordingsCalendarParams)
// Export recording as a single MP4 for a time range
// (GET /api/recordings/export/{camera})
ExportRecording(w http.ResponseWriter, r *http.Request, camera string, params ExportRecordingParams)
// List recording segments for a camera on a given date
// (GET /api/recordings/segments/{camera})
ListSegments(w http.ResponseWriter, r *http.Request, camera string, params ListSegmentsParams)
// Get recording summary for a date across all cameras
// (GET /api/recordings/summary)
GetRecordingsSummary(w http.ResponseWriter, r *http.Request, params GetRecordingsSummaryParams)
// Return cached storage breakdown
// (GET /api/storage)
GetStorage(w http.ResponseWriter, r *http.Request)
// List recent manual-delete audit rows
// (GET /api/storage/audit)
GetStorageAudit(w http.ResponseWriter, r *http.Request, params GetStorageAuditParams)
// Trigger an async retention pass
// (POST /api/storage/cleanup)
PostStorageCleanup(w http.ResponseWriter, r *http.Request)
// Delete segments/clips/snapshots in a scoped window
// (POST /api/storage/delete)
PostStorageDelete(w http.ResponseWriter, r *http.Request, params PostStorageDeleteParams)
// List every consumable stream URL per camera across all protocols
// (GET /api/streaming/capabilities)
GetStreamingCapabilities(w http.ResponseWriter, r *http.Request)
// System information
// (GET /api/system)
GetSystem(w http.ResponseWriter, r *http.Request)
// Trigger manual recompression
// (POST /api/system/recompress/trigger)
TriggerRecompression(w http.ResponseWriter, r *http.Request)
// List API tokens for the authenticated user
// (GET /api/tokens)
ListTokens(w http.ResponseWriter, r *http.Request)
// Create a new API token
// (POST /api/tokens)
CreateToken(w http.ResponseWriter, r *http.Request)
// Revoke an API token
// (DELETE /api/tokens/{id})
DeleteToken(w http.ResponseWriter, r *http.Request, id int64)
// Prometheus metrics
// (GET /metrics)
GetMetrics(w http.ResponseWriter, r *http.Request)
}
ServerInterface represents all server handlers.
func NewStrictHandler ¶
func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface
func NewStrictHandlerWithOptions ¶
func NewStrictHandlerWithOptions(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc, options StrictHTTPServerOptions) ServerInterface
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
HandlerMiddlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) AddObjectReference ¶
func (siw *ServerInterfaceWrapper) AddObjectReference(w http.ResponseWriter, r *http.Request)
AddObjectReference operation middleware
func (*ServerInterfaceWrapper) AnswerDoorbell ¶
func (siw *ServerInterfaceWrapper) AnswerDoorbell(w http.ResponseWriter, r *http.Request)
AnswerDoorbell operation middleware
func (*ServerInterfaceWrapper) AssignFace ¶
func (siw *ServerInterfaceWrapper) AssignFace(w http.ResponseWriter, r *http.Request)
AssignFace operation middleware
func (*ServerInterfaceWrapper) AssignPersonToEvent ¶
func (siw *ServerInterfaceWrapper) AssignPersonToEvent(w http.ResponseWriter, r *http.Request)
AssignPersonToEvent operation middleware
func (*ServerInterfaceWrapper) BackfillFaces ¶
func (siw *ServerInterfaceWrapper) BackfillFaces(w http.ResponseWriter, r *http.Request)
BackfillFaces operation middleware
func (*ServerInterfaceWrapper) ChangePassword ¶
func (siw *ServerInterfaceWrapper) ChangePassword(w http.ResponseWriter, r *http.Request)
ChangePassword operation middleware
func (*ServerInterfaceWrapper) CreateObject ¶
func (siw *ServerInterfaceWrapper) CreateObject(w http.ResponseWriter, r *http.Request)
CreateObject operation middleware
func (*ServerInterfaceWrapper) CreateObjectFromCameraTrack ¶
func (siw *ServerInterfaceWrapper) CreateObjectFromCameraTrack(w http.ResponseWriter, r *http.Request)
CreateObjectFromCameraTrack operation middleware
func (*ServerInterfaceWrapper) CreateToken ¶
func (siw *ServerInterfaceWrapper) CreateToken(w http.ResponseWriter, r *http.Request)
CreateToken operation middleware
func (*ServerInterfaceWrapper) CreateZone ¶
func (siw *ServerInterfaceWrapper) CreateZone(w http.ResponseWriter, r *http.Request)
CreateZone operation middleware
func (*ServerInterfaceWrapper) DeleteObject ¶
func (siw *ServerInterfaceWrapper) DeleteObject(w http.ResponseWriter, r *http.Request)
DeleteObject operation middleware
func (*ServerInterfaceWrapper) DeleteObjectReference ¶
func (siw *ServerInterfaceWrapper) DeleteObjectReference(w http.ResponseWriter, r *http.Request)
DeleteObjectReference operation middleware
func (*ServerInterfaceWrapper) DeletePerson ¶
func (siw *ServerInterfaceWrapper) DeletePerson(w http.ResponseWriter, r *http.Request)
DeletePerson operation middleware
func (*ServerInterfaceWrapper) DeleteToken ¶
func (siw *ServerInterfaceWrapper) DeleteToken(w http.ResponseWriter, r *http.Request)
DeleteToken operation middleware
func (*ServerInterfaceWrapper) DeleteZone ¶
func (siw *ServerInterfaceWrapper) DeleteZone(w http.ResponseWriter, r *http.Request)
DeleteZone operation middleware
func (*ServerInterfaceWrapper) DismissSighting ¶
func (siw *ServerInterfaceWrapper) DismissSighting(w http.ResponseWriter, r *http.Request)
DismissSighting operation middleware
func (*ServerInterfaceWrapper) ExcludeActivityEvidence ¶
func (siw *ServerInterfaceWrapper) ExcludeActivityEvidence(w http.ResponseWriter, r *http.Request)
ExcludeActivityEvidence operation middleware
func (*ServerInterfaceWrapper) ExportRecording ¶
func (siw *ServerInterfaceWrapper) ExportRecording(w http.ResponseWriter, r *http.Request)
ExportRecording operation middleware
func (*ServerInterfaceWrapper) GetActivity ¶
func (siw *ServerInterfaceWrapper) GetActivity(w http.ResponseWriter, r *http.Request)
GetActivity operation middleware
func (*ServerInterfaceWrapper) GetActivityCounts ¶
func (siw *ServerInterfaceWrapper) GetActivityCounts(w http.ResponseWriter, r *http.Request)
GetActivityCounts operation middleware
func (*ServerInterfaceWrapper) GetAuthMe ¶
func (siw *ServerInterfaceWrapper) GetAuthMe(w http.ResponseWriter, r *http.Request)
GetAuthMe operation middleware
func (*ServerInterfaceWrapper) GetCamera ¶
func (siw *ServerInterfaceWrapper) GetCamera(w http.ResponseWriter, r *http.Request)
GetCamera operation middleware
func (*ServerInterfaceWrapper) GetCameraPlayback ¶
func (siw *ServerInterfaceWrapper) GetCameraPlayback(w http.ResponseWriter, r *http.Request)
GetCameraPlayback operation middleware
func (*ServerInterfaceWrapper) GetCameraSnapshot ¶
func (siw *ServerInterfaceWrapper) GetCameraSnapshot(w http.ResponseWriter, r *http.Request)
GetCameraSnapshot operation middleware
func (*ServerInterfaceWrapper) GetCameraThumbnail ¶
func (siw *ServerInterfaceWrapper) GetCameraThumbnail(w http.ResponseWriter, r *http.Request)
GetCameraThumbnail operation middleware
func (*ServerInterfaceWrapper) GetCameraTimeline ¶
func (siw *ServerInterfaceWrapper) GetCameraTimeline(w http.ResponseWriter, r *http.Request)
GetCameraTimeline operation middleware
func (*ServerInterfaceWrapper) GetEvent ¶
func (siw *ServerInterfaceWrapper) GetEvent(w http.ResponseWriter, r *http.Request)
GetEvent operation middleware
func (*ServerInterfaceWrapper) GetEventClip ¶
func (siw *ServerInterfaceWrapper) GetEventClip(w http.ResponseWriter, r *http.Request)
GetEventClip operation middleware
func (*ServerInterfaceWrapper) GetEventCounts ¶
func (siw *ServerInterfaceWrapper) GetEventCounts(w http.ResponseWriter, r *http.Request)
GetEventCounts operation middleware
func (*ServerInterfaceWrapper) GetEventDetectionCrop ¶
func (siw *ServerInterfaceWrapper) GetEventDetectionCrop(w http.ResponseWriter, r *http.Request)
GetEventDetectionCrop operation middleware
func (*ServerInterfaceWrapper) GetEventSnapshot ¶
func (siw *ServerInterfaceWrapper) GetEventSnapshot(w http.ResponseWriter, r *http.Request)
GetEventSnapshot operation middleware
func (*ServerInterfaceWrapper) GetEventStream ¶
func (siw *ServerInterfaceWrapper) GetEventStream(w http.ResponseWriter, r *http.Request)
GetEventStream operation middleware
func (*ServerInterfaceWrapper) GetFaceCrop ¶
func (siw *ServerInterfaceWrapper) GetFaceCrop(w http.ResponseWriter, r *http.Request)
GetFaceCrop operation middleware
func (*ServerInterfaceWrapper) GetHealth ¶
func (siw *ServerInterfaceWrapper) GetHealth(w http.ResponseWriter, r *http.Request)
GetHealth operation middleware
func (*ServerInterfaceWrapper) GetHealthLive ¶
func (siw *ServerInterfaceWrapper) GetHealthLive(w http.ResponseWriter, r *http.Request)
GetHealthLive operation middleware
func (*ServerInterfaceWrapper) GetHealthReady ¶
func (siw *ServerInterfaceWrapper) GetHealthReady(w http.ResponseWriter, r *http.Request)
GetHealthReady operation middleware
func (*ServerInterfaceWrapper) GetLiveHLS ¶
func (siw *ServerInterfaceWrapper) GetLiveHLS(w http.ResponseWriter, r *http.Request)
GetLiveHLS operation middleware
func (*ServerInterfaceWrapper) GetLiveHLSInit ¶
func (siw *ServerInterfaceWrapper) GetLiveHLSInit(w http.ResponseWriter, r *http.Request)
GetLiveHLSInit operation middleware
func (*ServerInterfaceWrapper) GetLiveHLSSegment ¶
func (siw *ServerInterfaceWrapper) GetLiveHLSSegment(w http.ResponseWriter, r *http.Request)
GetLiveHLSSegment operation middleware
func (*ServerInterfaceWrapper) GetMJPEG ¶
func (siw *ServerInterfaceWrapper) GetMJPEG(w http.ResponseWriter, r *http.Request)
GetMJPEG operation middleware
func (*ServerInterfaceWrapper) GetMSEWebSocket ¶
func (siw *ServerInterfaceWrapper) GetMSEWebSocket(w http.ResponseWriter, r *http.Request)
GetMSEWebSocket operation middleware
func (*ServerInterfaceWrapper) GetMetrics ¶
func (siw *ServerInterfaceWrapper) GetMetrics(w http.ResponseWriter, r *http.Request)
GetMetrics operation middleware
func (*ServerInterfaceWrapper) GetObjectCrop ¶
func (siw *ServerInterfaceWrapper) GetObjectCrop(w http.ResponseWriter, r *http.Request)
GetObjectCrop operation middleware
func (*ServerInterfaceWrapper) GetOpenAPISpec ¶
func (siw *ServerInterfaceWrapper) GetOpenAPISpec(w http.ResponseWriter, r *http.Request)
GetOpenAPISpec operation middleware
func (*ServerInterfaceWrapper) GetPerson ¶
func (siw *ServerInterfaceWrapper) GetPerson(w http.ResponseWriter, r *http.Request)
GetPerson operation middleware
func (*ServerInterfaceWrapper) GetRecordingsCalendar ¶
func (siw *ServerInterfaceWrapper) GetRecordingsCalendar(w http.ResponseWriter, r *http.Request)
GetRecordingsCalendar operation middleware
func (*ServerInterfaceWrapper) GetRecordingsSummary ¶
func (siw *ServerInterfaceWrapper) GetRecordingsSummary(w http.ResponseWriter, r *http.Request)
GetRecordingsSummary operation middleware
func (*ServerInterfaceWrapper) GetSegment ¶
func (siw *ServerInterfaceWrapper) GetSegment(w http.ResponseWriter, r *http.Request)
GetSegment operation middleware
func (*ServerInterfaceWrapper) GetSegmentHLS ¶
func (siw *ServerInterfaceWrapper) GetSegmentHLS(w http.ResponseWriter, r *http.Request)
GetSegmentHLS operation middleware
func (*ServerInterfaceWrapper) GetSegmentInit ¶
func (siw *ServerInterfaceWrapper) GetSegmentInit(w http.ResponseWriter, r *http.Request)
GetSegmentInit operation middleware
func (*ServerInterfaceWrapper) GetStorage ¶
func (siw *ServerInterfaceWrapper) GetStorage(w http.ResponseWriter, r *http.Request)
GetStorage operation middleware
func (*ServerInterfaceWrapper) GetStorageAudit ¶
func (siw *ServerInterfaceWrapper) GetStorageAudit(w http.ResponseWriter, r *http.Request)
GetStorageAudit operation middleware
func (*ServerInterfaceWrapper) GetStreamingCapabilities ¶
func (siw *ServerInterfaceWrapper) GetStreamingCapabilities(w http.ResponseWriter, r *http.Request)
GetStreamingCapabilities operation middleware
func (*ServerInterfaceWrapper) GetSystem ¶
func (siw *ServerInterfaceWrapper) GetSystem(w http.ResponseWriter, r *http.Request)
GetSystem operation middleware
func (*ServerInterfaceWrapper) GetTalkbackCapabilities ¶
func (siw *ServerInterfaceWrapper) GetTalkbackCapabilities(w http.ResponseWriter, r *http.Request)
GetTalkbackCapabilities operation middleware
func (*ServerInterfaceWrapper) GetZonePresence ¶
func (siw *ServerInterfaceWrapper) GetZonePresence(w http.ResponseWriter, r *http.Request)
GetZonePresence operation middleware
func (*ServerInterfaceWrapper) IdentifyEvent ¶
func (siw *ServerInterfaceWrapper) IdentifyEvent(w http.ResponseWriter, r *http.Request)
IdentifyEvent operation middleware
func (*ServerInterfaceWrapper) IgnoreFace ¶
func (siw *ServerInterfaceWrapper) IgnoreFace(w http.ResponseWriter, r *http.Request)
IgnoreFace operation middleware
func (*ServerInterfaceWrapper) ListActivities ¶
func (siw *ServerInterfaceWrapper) ListActivities(w http.ResponseWriter, r *http.Request)
ListActivities operation middleware
func (*ServerInterfaceWrapper) ListCameras ¶
func (siw *ServerInterfaceWrapper) ListCameras(w http.ResponseWriter, r *http.Request)
ListCameras operation middleware
func (*ServerInterfaceWrapper) ListEvents ¶
func (siw *ServerInterfaceWrapper) ListEvents(w http.ResponseWriter, r *http.Request)
ListEvents operation middleware
func (*ServerInterfaceWrapper) ListObjectReferences ¶
func (siw *ServerInterfaceWrapper) ListObjectReferences(w http.ResponseWriter, r *http.Request)
ListObjectReferences operation middleware
func (*ServerInterfaceWrapper) ListObjectSightings ¶
func (siw *ServerInterfaceWrapper) ListObjectSightings(w http.ResponseWriter, r *http.Request)
ListObjectSightings operation middleware
func (*ServerInterfaceWrapper) ListObjects ¶
func (siw *ServerInterfaceWrapper) ListObjects(w http.ResponseWriter, r *http.Request)
ListObjects operation middleware
func (*ServerInterfaceWrapper) ListPeople ¶
func (siw *ServerInterfaceWrapper) ListPeople(w http.ResponseWriter, r *http.Request)
ListPeople operation middleware
func (*ServerInterfaceWrapper) ListPersonEvents ¶
func (siw *ServerInterfaceWrapper) ListPersonEvents(w http.ResponseWriter, r *http.Request)
ListPersonEvents operation middleware
func (*ServerInterfaceWrapper) ListPersonFaces ¶
func (siw *ServerInterfaceWrapper) ListPersonFaces(w http.ResponseWriter, r *http.Request)
ListPersonFaces operation middleware
func (*ServerInterfaceWrapper) ListSegments ¶
func (siw *ServerInterfaceWrapper) ListSegments(w http.ResponseWriter, r *http.Request)
ListSegments operation middleware
func (*ServerInterfaceWrapper) ListTokens ¶
func (siw *ServerInterfaceWrapper) ListTokens(w http.ResponseWriter, r *http.Request)
ListTokens operation middleware
func (*ServerInterfaceWrapper) ListUnmatchedFaces ¶
func (siw *ServerInterfaceWrapper) ListUnmatchedFaces(w http.ResponseWriter, r *http.Request)
ListUnmatchedFaces operation middleware
func (*ServerInterfaceWrapper) ListZones ¶
func (siw *ServerInterfaceWrapper) ListZones(w http.ResponseWriter, r *http.Request)
ListZones operation middleware
func (*ServerInterfaceWrapper) Login ¶
func (siw *ServerInterfaceWrapper) Login(w http.ResponseWriter, r *http.Request)
Login operation middleware
func (*ServerInterfaceWrapper) Logout ¶
func (siw *ServerInterfaceWrapper) Logout(w http.ResponseWriter, r *http.Request)
Logout operation middleware
func (*ServerInterfaceWrapper) MergePeople ¶
func (siw *ServerInterfaceWrapper) MergePeople(w http.ResponseWriter, r *http.Request)
MergePeople operation middleware
func (*ServerInterfaceWrapper) PostStorageCleanup ¶
func (siw *ServerInterfaceWrapper) PostStorageCleanup(w http.ResponseWriter, r *http.Request)
PostStorageCleanup operation middleware
func (*ServerInterfaceWrapper) PostStorageDelete ¶
func (siw *ServerInterfaceWrapper) PostStorageDelete(w http.ResponseWriter, r *http.Request)
PostStorageDelete operation middleware
func (*ServerInterfaceWrapper) PostTalkbackOffer ¶
func (siw *ServerInterfaceWrapper) PostTalkbackOffer(w http.ResponseWriter, r *http.Request)
PostTalkbackOffer operation middleware
func (*ServerInterfaceWrapper) PostWebRTCOffer ¶
func (siw *ServerInterfaceWrapper) PostWebRTCOffer(w http.ResponseWriter, r *http.Request)
PostWebRTCOffer operation middleware
func (*ServerInterfaceWrapper) PressDoorbell ¶
func (siw *ServerInterfaceWrapper) PressDoorbell(w http.ResponseWriter, r *http.Request)
PressDoorbell operation middleware
func (*ServerInterfaceWrapper) ReextractClip ¶
func (siw *ServerInterfaceWrapper) ReextractClip(w http.ResponseWriter, r *http.Request)
ReextractClip operation middleware
func (*ServerInterfaceWrapper) RestoreActivityEvidence ¶
func (siw *ServerInterfaceWrapper) RestoreActivityEvidence(w http.ResponseWriter, r *http.Request)
RestoreActivityEvidence operation middleware
func (*ServerInterfaceWrapper) SendPTZCommand ¶
func (siw *ServerInterfaceWrapper) SendPTZCommand(w http.ResponseWriter, r *http.Request)
SendPTZCommand operation middleware
func (*ServerInterfaceWrapper) SetObjectThumbnail ¶
func (siw *ServerInterfaceWrapper) SetObjectThumbnail(w http.ResponseWriter, r *http.Request)
SetObjectThumbnail operation middleware
func (*ServerInterfaceWrapper) StartCamera ¶
func (siw *ServerInterfaceWrapper) StartCamera(w http.ResponseWriter, r *http.Request)
StartCamera operation middleware
func (*ServerInterfaceWrapper) StopCamera ¶
func (siw *ServerInterfaceWrapper) StopCamera(w http.ResponseWriter, r *http.Request)
StopCamera operation middleware
func (*ServerInterfaceWrapper) TrackPerson ¶
func (siw *ServerInterfaceWrapper) TrackPerson(w http.ResponseWriter, r *http.Request)
TrackPerson operation middleware
func (*ServerInterfaceWrapper) TriggerRecompression ¶
func (siw *ServerInterfaceWrapper) TriggerRecompression(w http.ResponseWriter, r *http.Request)
TriggerRecompression operation middleware
func (*ServerInterfaceWrapper) UpdateObject ¶
func (siw *ServerInterfaceWrapper) UpdateObject(w http.ResponseWriter, r *http.Request)
UpdateObject operation middleware
func (*ServerInterfaceWrapper) UpdatePerson ¶
func (siw *ServerInterfaceWrapper) UpdatePerson(w http.ResponseWriter, r *http.Request)
UpdatePerson operation middleware
func (*ServerInterfaceWrapper) UpdateZone ¶
func (siw *ServerInterfaceWrapper) UpdateZone(w http.ResponseWriter, r *http.Request)
UpdateZone operation middleware
type SetObjectThumbnail200JSONResponse ¶
type SetObjectThumbnail200JSONResponse SetObjectThumbnailResponse
func (SetObjectThumbnail200JSONResponse) VisitSetObjectThumbnailResponse ¶
func (response SetObjectThumbnail200JSONResponse) VisitSetObjectThumbnailResponse(w http.ResponseWriter) error
type SetObjectThumbnail400JSONResponse ¶
type SetObjectThumbnail400JSONResponse Error
func (SetObjectThumbnail400JSONResponse) VisitSetObjectThumbnailResponse ¶
func (response SetObjectThumbnail400JSONResponse) VisitSetObjectThumbnailResponse(w http.ResponseWriter) error
type SetObjectThumbnail404JSONResponse ¶
type SetObjectThumbnail404JSONResponse Error
func (SetObjectThumbnail404JSONResponse) VisitSetObjectThumbnailResponse ¶
func (response SetObjectThumbnail404JSONResponse) VisitSetObjectThumbnailResponse(w http.ResponseWriter) error
type SetObjectThumbnailJSONRequestBody ¶
type SetObjectThumbnailJSONRequestBody = SetObjectThumbnailRequest
SetObjectThumbnailJSONRequestBody defines body for SetObjectThumbnail for application/json ContentType.
type SetObjectThumbnailRequest ¶
type SetObjectThumbnailRequest struct {
// EventId Event ID — server re-cuts the bounding box from the event snapshot.
EventId *string `json:"event_id,omitempty"`
// ReferenceId Reference ID — copies that reference's crop as the thumbnail.
ReferenceId *int64 `json:"reference_id,omitempty"`
}
SetObjectThumbnailRequest Provide exactly one of event_id or reference_id.
type SetObjectThumbnailRequestObject ¶
type SetObjectThumbnailRequestObject struct {
Id int64 `json:"id"`
Body *SetObjectThumbnailJSONRequestBody
}
type SetObjectThumbnailResponse ¶
type SetObjectThumbnailResponse struct {
CropPath string `json:"crop_path"`
ObjectId int64 `json:"object_id"`
}
SetObjectThumbnailResponse defines model for SetObjectThumbnailResponse.
type SetObjectThumbnailResponseObject ¶
type SetObjectThumbnailResponseObject interface {
VisitSetObjectThumbnailResponse(w http.ResponseWriter) error
}
type SetupHandler ¶
type SetupHandler struct {
// contains filtered or unexported fields
}
SetupHandler serves the onboarding API endpoints used during initial setup.
func NewSetupHandler ¶
func NewSetupHandler(configPath string, db *storage.DB, setupDone chan struct{}) *SetupHandler
NewSetupHandler creates a handler for the setup/onboarding API.
func (*SetupHandler) AdminConfigured ¶
func (h *SetupHandler) AdminConfigured() bool
AdminConfigured reports whether an admin account has already been created.
func (*SetupHandler) HandleAddCameras ¶
func (h *SetupHandler) HandleAddCameras(w http.ResponseWriter, r *http.Request)
HandleAddCameras writes camera entries to the config file.
func (*SetupHandler) HandleComplete ¶
func (h *SetupHandler) HandleComplete(w http.ResponseWriter, _ *http.Request)
HandleComplete signals that setup is done (used by "Skip for Now").
func (*SetupHandler) HandleDiscover ¶
func (h *SetupHandler) HandleDiscover(w http.ResponseWriter, _ *http.Request)
HandleDiscover runs WS-Discovery to find cameras on the network.
func (*SetupHandler) HandleInstallOpenH264 ¶
func (h *SetupHandler) HandleInstallOpenH264(w http.ResponseWriter, r *http.Request)
func (*SetupHandler) HandleOpenH264Status ¶
func (h *SetupHandler) HandleOpenH264Status(w http.ResponseWriter, _ *http.Request)
func (*SetupHandler) HandleProbe ¶
func (h *SetupHandler) HandleProbe(w http.ResponseWriter, r *http.Request)
HandleProbe tests RTSP credentials against discovered cameras.
func (*SetupHandler) HandleSetup ¶
func (h *SetupHandler) HandleSetup(w http.ResponseWriter, r *http.Request)
HandleSetup creates the initial admin account and writes config.
func (*SetupHandler) HandleTestRTSP ¶
func (h *SetupHandler) HandleTestRTSP(w http.ResponseWriter, r *http.Request)
HandleTestRTSP dials an RTSP URL during setup and reports stream capabilities.
func (*SetupHandler) HandleThumbnail ¶
func (h *SetupHandler) HandleThumbnail(w http.ResponseWriter, r *http.Request)
HandleThumbnail serves a cached camera thumbnail JPEG.
type SightingListEnvelope ¶
type SightingListEnvelope struct {
HasMore bool `json:"has_more"`
Items []ObjectSighting `json:"items"`
Limit int `json:"limit"`
Offset int `json:"offset"`
Total int `json:"total"`
}
SightingListEnvelope defines model for SightingListEnvelope.
type StartCamera200JSONResponse ¶
type StartCamera200JSONResponse CameraStatus
func (StartCamera200JSONResponse) VisitStartCameraResponse ¶
func (response StartCamera200JSONResponse) VisitStartCameraResponse(w http.ResponseWriter) error
type StartCamera404JSONResponse ¶
type StartCamera404JSONResponse Error
func (StartCamera404JSONResponse) VisitStartCameraResponse ¶
func (response StartCamera404JSONResponse) VisitStartCameraResponse(w http.ResponseWriter) error
type StartCamera409JSONResponse ¶
type StartCamera409JSONResponse Error
func (StartCamera409JSONResponse) VisitStartCameraResponse ¶
func (response StartCamera409JSONResponse) VisitStartCameraResponse(w http.ResponseWriter) error
type StartCameraRequestObject ¶
type StartCameraRequestObject struct {
Name string `json:"name"`
}
type StartCameraResponseObject ¶
type StartCameraResponseObject interface {
VisitStartCameraResponse(w http.ResponseWriter) error
}
type StatusDeleted ¶
type StatusDeleted struct {
Status StatusDeletedStatus `json:"status"`
}
StatusDeleted defines model for StatusDeleted.
type StatusDeletedStatus ¶
type StatusDeletedStatus string
StatusDeletedStatus defines model for StatusDeleted.Status.
const (
Deleted StatusDeletedStatus = "deleted"
)
Defines values for StatusDeletedStatus.
func (StatusDeletedStatus) Valid ¶
func (e StatusDeletedStatus) Valid() bool
Valid indicates whether the value is a known member of the StatusDeletedStatus enum.
type StatusDismissed ¶
type StatusDismissed struct {
Status StatusDismissedStatus `json:"status"`
}
StatusDismissed defines model for StatusDismissed.
type StatusDismissedStatus ¶
type StatusDismissedStatus string
StatusDismissedStatus defines model for StatusDismissed.Status.
const (
Dismissed StatusDismissedStatus = "dismissed"
)
Defines values for StatusDismissedStatus.
func (StatusDismissedStatus) Valid ¶
func (e StatusDismissedStatus) Valid() bool
Valid indicates whether the value is a known member of the StatusDismissedStatus enum.
type StatusIgnored ¶
type StatusIgnored struct {
Status StatusIgnoredStatus `json:"status"`
}
StatusIgnored defines model for StatusIgnored.
type StatusIgnoredStatus ¶
type StatusIgnoredStatus string
StatusIgnoredStatus defines model for StatusIgnored.Status.
const (
Ignored StatusIgnoredStatus = "ignored"
)
Defines values for StatusIgnoredStatus.
func (StatusIgnoredStatus) Valid ¶
func (e StatusIgnoredStatus) Valid() bool
Valid indicates whether the value is a known member of the StatusIgnoredStatus enum.
type StatusMerged ¶
type StatusMerged struct {
Status StatusMergedStatus `json:"status"`
}
StatusMerged defines model for StatusMerged.
type StatusMergedStatus ¶
type StatusMergedStatus string
StatusMergedStatus defines model for StatusMerged.Status.
const (
Merged StatusMergedStatus = "merged"
)
Defines values for StatusMergedStatus.
func (StatusMergedStatus) Valid ¶
func (e StatusMergedStatus) Valid() bool
Valid indicates whether the value is a known member of the StatusMergedStatus enum.
type StatusOk ¶
type StatusOk struct {
Status StatusOkStatus `json:"status"`
}
StatusOk defines model for StatusOk.
type StatusOkStatus ¶
type StatusOkStatus string
StatusOkStatus defines model for StatusOk.Status.
const (
Ok StatusOkStatus = "ok"
)
Defines values for StatusOkStatus.
func (StatusOkStatus) Valid ¶
func (e StatusOkStatus) Valid() bool
Valid indicates whether the value is a known member of the StatusOkStatus enum.
type StatusUpdated ¶
type StatusUpdated struct {
Status StatusUpdatedStatus `json:"status"`
}
StatusUpdated defines model for StatusUpdated.
type StatusUpdatedStatus ¶
type StatusUpdatedStatus string
StatusUpdatedStatus defines model for StatusUpdated.Status.
const (
Updated StatusUpdatedStatus = "updated"
)
Defines values for StatusUpdatedStatus.
func (StatusUpdatedStatus) Valid ¶
func (e StatusUpdatedStatus) Valid() bool
Valid indicates whether the value is a known member of the StatusUpdatedStatus enum.
type StdHTTPServerOptions ¶
type StdHTTPServerOptions struct {
BaseURL string
BaseRouter ServeMux
Middlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
type StopCamera200JSONResponse ¶
type StopCamera200JSONResponse CameraStatus
func (StopCamera200JSONResponse) VisitStopCameraResponse ¶
func (response StopCamera200JSONResponse) VisitStopCameraResponse(w http.ResponseWriter) error
type StopCamera404JSONResponse ¶
type StopCamera404JSONResponse Error
func (StopCamera404JSONResponse) VisitStopCameraResponse ¶
func (response StopCamera404JSONResponse) VisitStopCameraResponse(w http.ResponseWriter) error
type StopCamera409JSONResponse ¶
type StopCamera409JSONResponse Error
func (StopCamera409JSONResponse) VisitStopCameraResponse ¶
func (response StopCamera409JSONResponse) VisitStopCameraResponse(w http.ResponseWriter) error
type StopCameraRequestObject ¶
type StopCameraRequestObject struct {
Name string `json:"name"`
}
type StopCameraResponseObject ¶
type StopCameraResponseObject interface {
VisitStopCameraResponse(w http.ResponseWriter) error
}
type StorageAuditEntry ¶
type StorageAuditEntry struct {
Actor *string `json:"actor,omitempty"`
Bytes *int64 `json:"bytes,omitempty"`
Files *int `json:"files,omitempty"`
Scope *map[string]interface{} `json:"scope,omitempty"`
Ts *time.Time `json:"ts,omitempty"`
}
StorageAuditEntry defines model for StorageAuditEntry.
type StorageBreakdown ¶
type StorageBreakdown struct {
Cameras *[]CameraBreakdown `json:"cameras,omitempty"`
Projection *map[string]interface{} `json:"projection,omitempty"`
Recompression *RecompressionStats `json:"recompression,omitempty"`
Recording *FilesystemStats `json:"recording,omitempty"`
RecordingPaused *bool `json:"recording_paused,omitempty"`
Snapshots *FilesystemStats `json:"snapshots,omitempty"`
}
StorageBreakdown defines model for StorageBreakdown.
type StorageHealthCheck ¶
type StorageHealthCheck struct {
DiskAvailable string `json:"disk_available"`
DiskLow bool `json:"disk_low"`
Recompression RecompressionStats `json:"recompression"`
RecordingPaused bool `json:"recording_paused"`
Used string `json:"used"`
UsedBytes int64 `json:"used_bytes"`
}
StorageHealthCheck defines model for StorageHealthCheck.
type StreamingCapabilities ¶
type StreamingCapabilities struct {
// AuthRequired Whether the RTSP republish and HTTP streaming endpoints require Basic Auth credentials (true when auth.users is configured).
AuthRequired bool `json:"auth_required"`
Cameras []CameraStreamCapabilities `json:"cameras"`
RtspServer struct {
Enabled bool `json:"enabled"`
Port int `json:"port"`
} `json:"rtsp_server"`
}
StreamingCapabilities defines model for StreamingCapabilities.
type StrictHTTPServerOptions ¶
type StrictHTTPServerOptions struct {
RequestErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
ResponseErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
type StrictHandlerFunc ¶
type StrictHandlerFunc = strictnethttp.StrictHTTPHandlerFunc
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc = strictnethttp.StrictHTTPMiddlewareFunc
type StrictServerInterface ¶
type StrictServerInterface interface {
// List review activities
// (GET /api/activities)
ListActivities(ctx context.Context, request ListActivitiesRequestObject) (ListActivitiesResponseObject, error)
// Get activity totals
// (GET /api/activities/counts)
GetActivityCounts(ctx context.Context, request GetActivityCountsRequestObject) (GetActivityCountsResponseObject, error)
// Get an activity and all supporting evidence
// (GET /api/activities/{id})
GetActivity(ctx context.Context, request GetActivityRequestObject) (GetActivityResponseObject, error)
// Exclude unrelated evidence from an activity
// (POST /api/activities/{id}/evidence/{eventId}/exclude)
ExcludeActivityEvidence(ctx context.Context, request ExcludeActivityEvidenceRequestObject) (ExcludeActivityEvidenceResponseObject, error)
// Restore excluded evidence to an activity
// (POST /api/activities/{id}/evidence/{eventId}/restore)
RestoreActivityEvidence(ctx context.Context, request RestoreActivityEvidenceRequestObject) (RestoreActivityEvidenceResponseObject, error)
// Change the current user's password
// (POST /api/auth/change-password)
ChangePassword(ctx context.Context, request ChangePasswordRequestObject) (ChangePasswordResponseObject, error)
// Authenticate with username and password
// (POST /api/auth/login)
Login(ctx context.Context, request LoginRequestObject) (LoginResponseObject, error)
// End the current session
// (POST /api/auth/logout)
Logout(ctx context.Context, request LogoutRequestObject) (LogoutResponseObject, error)
// Get the current authenticated principal
// (GET /api/auth/me)
GetAuthMe(ctx context.Context, request GetAuthMeRequestObject) (GetAuthMeResponseObject, error)
// List all cameras
// (GET /api/cameras)
ListCameras(ctx context.Context, request ListCamerasRequestObject) (ListCamerasResponseObject, error)
// Get camera detail
// (GET /api/cameras/{name})
GetCamera(ctx context.Context, request GetCameraRequestObject) (GetCameraResponseObject, error)
// Trigger a doorbell press event
// (POST /api/cameras/{name}/doorbell)
PressDoorbell(ctx context.Context, request PressDoorbellRequestObject) (PressDoorbellResponseObject, error)
// Acknowledge (answer) a doorbell ring
// (POST /api/cameras/{name}/doorbell/{event_id}/answer)
AnswerDoorbell(ctx context.Context, request AnswerDoorbellRequestObject) (AnswerDoorbellResponseObject, error)
// Live HLS playlist (low-latency fMP4/CMAF)
// (GET /api/cameras/{name}/live.m3u8)
GetLiveHLS(ctx context.Context, request GetLiveHLSRequestObject) (GetLiveHLSResponseObject, error)
// Serve the fMP4 init segment for the live HLS stream
// (GET /api/cameras/{name}/live/init.mp4)
GetLiveHLSInit(ctx context.Context, request GetLiveHLSInitRequestObject) (GetLiveHLSInitResponseObject, error)
// Serve a live fMP4 media segment
// (GET /api/cameras/{name}/live/{segNum})
GetLiveHLSSegment(ctx context.Context, request GetLiveHLSSegmentRequestObject) (GetLiveHLSSegmentResponseObject, error)
// MJPEG live stream
// (GET /api/cameras/{name}/mjpeg)
GetMJPEG(ctx context.Context, request GetMJPEGRequestObject) (GetMJPEGResponseObject, error)
// WebSocket endpoint for MSE live streaming
// (GET /api/cameras/{name}/mse/ws)
GetMSEWebSocket(ctx context.Context, request GetMSEWebSocketRequestObject) (GetMSEWebSocketResponseObject, error)
// Name a live tracked object on this camera (from the live overlay)
// (POST /api/cameras/{name}/objects)
CreateObjectFromCameraTrack(ctx context.Context, request CreateObjectFromCameraTrackRequestObject) (CreateObjectFromCameraTrackResponseObject, error)
// Generate HLS playlist for camera playback
// (GET /api/cameras/{name}/playback.m3u8)
GetCameraPlayback(ctx context.Context, request GetCameraPlaybackRequestObject) (GetCameraPlaybackResponseObject, error)
// Send a PTZ command to a camera
// (POST /api/cameras/{name}/ptz)
SendPTZCommand(ctx context.Context, request SendPTZCommandRequestObject) (SendPTZCommandResponseObject, error)
// Serve a full recording segment as MP4
// (GET /api/cameras/{name}/segments/{id})
GetSegment(ctx context.Context, request GetSegmentRequestObject) (GetSegmentResponseObject, error)
// Serve the fMP4 init segment for HLS playback
// (GET /api/cameras/{name}/segments/{id}/hls/init.mp4)
GetSegmentInit(ctx context.Context, request GetSegmentInitRequestObject) (GetSegmentInitResponseObject, error)
// Serve a re-segmented fMP4 chunk for HLS playback
// (GET /api/cameras/{name}/segments/{id}/hls/{segNum})
GetSegmentHLS(ctx context.Context, request GetSegmentHLSRequestObject) (GetSegmentHLSResponseObject, error)
// Get live camera snapshot
// (GET /api/cameras/{name}/snapshot)
GetCameraSnapshot(ctx context.Context, request GetCameraSnapshotRequestObject) (GetCameraSnapshotResponseObject, error)
// Start a stopped camera (reconnect RTSP, resume detection and recording)
// (POST /api/cameras/{name}/start)
StartCamera(ctx context.Context, request StartCameraRequestObject) (StartCameraResponseObject, error)
// Stop a camera (disconnect RTSP, stop detection and recording)
// (POST /api/cameras/{name}/stop)
StopCamera(ctx context.Context, request StopCameraRequestObject) (StopCameraResponseObject, error)
// Probe the camera's ONVIF audio return channel
// (GET /api/cameras/{name}/talkback/capabilities)
GetTalkbackCapabilities(ctx context.Context, request GetTalkbackCapabilitiesRequestObject) (GetTalkbackCapabilitiesResponseObject, error)
// Start microphone-only WebRTC talkback to an ONVIF backchannel
// (POST /api/cameras/{name}/talkback/offer)
PostTalkbackOffer(ctx context.Context, request PostTalkbackOfferRequestObject) (PostTalkbackOfferResponseObject, error)
// Get recording thumbnail at a given time
// (GET /api/cameras/{name}/thumbnail)
GetCameraThumbnail(ctx context.Context, request GetCameraThumbnailRequestObject) (GetCameraThumbnailResponseObject, error)
// Get timeline data for a camera on a given date
// (GET /api/cameras/{name}/timeline)
GetCameraTimeline(ctx context.Context, request GetCameraTimelineRequestObject) (GetCameraTimelineResponseObject, error)
// Send a WebRTC SDP offer and receive an SDP answer
// (POST /api/cameras/{name}/webrtc/offer)
PostWebRTCOffer(ctx context.Context, request PostWebRTCOfferRequestObject) (PostWebRTCOfferResponseObject, error)
// List zones for a camera
// (GET /api/cameras/{name}/zones)
ListZones(ctx context.Context, request ListZonesRequestObject) (ListZonesResponseObject, error)
// Create a zone for a camera
// (POST /api/cameras/{name}/zones)
CreateZone(ctx context.Context, request CreateZoneRequestObject) (CreateZoneResponseObject, error)
// Delete a zone
// (DELETE /api/cameras/{name}/zones/{zone})
DeleteZone(ctx context.Context, request DeleteZoneRequestObject) (DeleteZoneResponseObject, error)
// Update a zone
// (PUT /api/cameras/{name}/zones/{zone})
UpdateZone(ctx context.Context, request UpdateZoneRequestObject) (UpdateZoneResponseObject, error)
// Get presence state for a zone
// (GET /api/cameras/{name}/zones/{zone}/presence)
GetZonePresence(ctx context.Context, request GetZonePresenceRequestObject) (GetZonePresenceResponseObject, error)
// List detection events
// (GET /api/events)
ListEvents(ctx context.Context, request ListEventsRequestObject) (ListEventsResponseObject, error)
// Get event counts by label and camera
// (GET /api/events/counts)
GetEventCounts(ctx context.Context, request GetEventCountsRequestObject) (GetEventCountsResponseObject, error)
// Server-sent event stream
// (GET /api/events/stream)
GetEventStream(ctx context.Context, request GetEventStreamRequestObject) (GetEventStreamResponseObject, error)
// Get a single event
// (GET /api/events/{id})
GetEvent(ctx context.Context, request GetEventRequestObject) (GetEventResponseObject, error)
// Assign a known person to an event or ignore it
// (POST /api/events/{id}/assign-person)
AssignPersonToEvent(ctx context.Context, request AssignPersonToEventRequestObject) (AssignPersonToEventResponseObject, error)
// Download event video clip
// (GET /api/events/{id}/clip)
GetEventClip(ctx context.Context, request GetEventClipRequestObject) (GetEventClipResponseObject, error)
// Re-extract event clip from recording segments
// (POST /api/events/{id}/clip)
ReextractClip(ctx context.Context, request ReextractClipRequestObject) (ReextractClipResponseObject, error)
// Get cropped detection region from event snapshot
// (GET /api/events/{id}/detection-crop)
GetEventDetectionCrop(ctx context.Context, request GetEventDetectionCropRequestObject) (GetEventDetectionCropResponseObject, error)
// Identify object in event using re-identification embeddings
// (POST /api/events/{id}/identify)
IdentifyEvent(ctx context.Context, request IdentifyEventRequestObject) (IdentifyEventResponseObject, error)
// Get event snapshot image with bounding box overlay
// (GET /api/events/{id}/snapshot)
GetEventSnapshot(ctx context.Context, request GetEventSnapshotRequestObject) (GetEventSnapshotResponseObject, error)
// Create a person record from an event detection
// (POST /api/events/{id}/track-person)
TrackPerson(ctx context.Context, request TrackPersonRequestObject) (TrackPersonResponseObject, error)
// Scan existing snapshots for faces
// (POST /api/faces/backfill)
BackfillFaces(ctx context.Context, request BackfillFacesRequestObject) (BackfillFacesResponseObject, error)
// List faces not assigned to any person
// (GET /api/faces/unmatched)
ListUnmatchedFaces(ctx context.Context, request ListUnmatchedFacesRequestObject) (ListUnmatchedFacesResponseObject, error)
// Assign a face to a person
// (PUT /api/faces/{id}/assign)
AssignFace(ctx context.Context, request AssignFaceRequestObject) (AssignFaceResponseObject, error)
// Get cropped face image
// (GET /api/faces/{id}/crop)
GetFaceCrop(ctx context.Context, request GetFaceCropRequestObject) (GetFaceCropResponseObject, error)
// Delete/ignore a face
// (POST /api/faces/{id}/ignore)
IgnoreFace(ctx context.Context, request IgnoreFaceRequestObject) (IgnoreFaceResponseObject, error)
// Full health check
// (GET /api/health)
GetHealth(ctx context.Context, request GetHealthRequestObject) (GetHealthResponseObject, error)
// Liveness probe
// (GET /api/health/live)
GetHealthLive(ctx context.Context, request GetHealthLiveRequestObject) (GetHealthLiveResponseObject, error)
// Readiness probe
// (GET /api/health/ready)
GetHealthReady(ctx context.Context, request GetHealthReadyRequestObject) (GetHealthReadyResponseObject, error)
// List all known objects
// (GET /api/objects)
ListObjects(ctx context.Context, request ListObjectsRequestObject) (ListObjectsResponseObject, error)
// Create a known object from an event detection
// (POST /api/objects)
CreateObject(ctx context.Context, request CreateObjectRequestObject) (CreateObjectResponseObject, error)
// Delete an object reference image
// (DELETE /api/objects/references/{id})
DeleteObjectReference(ctx context.Context, request DeleteObjectReferenceRequestObject) (DeleteObjectReferenceResponseObject, error)
// Dismiss an object sighting
// (DELETE /api/objects/sightings/{id})
DismissSighting(ctx context.Context, request DismissSightingRequestObject) (DismissSightingResponseObject, error)
// Delete a known object
// (DELETE /api/objects/{id})
DeleteObject(ctx context.Context, request DeleteObjectRequestObject) (DeleteObjectResponseObject, error)
// Update a known object's name or match threshold
// (PUT /api/objects/{id})
UpdateObject(ctx context.Context, request UpdateObjectRequestObject) (UpdateObjectResponseObject, error)
// Get cropped image of a known object
// (GET /api/objects/{id}/crop)
GetObjectCrop(ctx context.Context, request GetObjectCropRequestObject) (GetObjectCropResponseObject, error)
// List reference images for a known object
// (GET /api/objects/{id}/references)
ListObjectReferences(ctx context.Context, request ListObjectReferencesRequestObject) (ListObjectReferencesResponseObject, error)
// Add a reference image to a known object from an event
// (POST /api/objects/{id}/references)
AddObjectReference(ctx context.Context, request AddObjectReferenceRequestObject) (AddObjectReferenceResponseObject, error)
// List sightings of a known object
// (GET /api/objects/{id}/sightings)
ListObjectSightings(ctx context.Context, request ListObjectSightingsRequestObject) (ListObjectSightingsResponseObject, error)
// Set the avatar/thumbnail of a known object from an event or reference
// (POST /api/objects/{id}/thumbnail)
SetObjectThumbnail(ctx context.Context, request SetObjectThumbnailRequestObject) (SetObjectThumbnailResponseObject, error)
// OpenAPI specification
// (GET /api/openapi.json)
GetOpenAPISpec(ctx context.Context, request GetOpenAPISpecRequestObject) (GetOpenAPISpecResponseObject, error)
// List all known people
// (GET /api/people)
ListPeople(ctx context.Context, request ListPeopleRequestObject) (ListPeopleResponseObject, error)
// Merge two people into one
// (POST /api/people/merge)
MergePeople(ctx context.Context, request MergePeopleRequestObject) (MergePeopleResponseObject, error)
// Delete a person
// (DELETE /api/people/{id})
DeletePerson(ctx context.Context, request DeletePersonRequestObject) (DeletePersonResponseObject, error)
// Get person detail with recent faces
// (GET /api/people/{id})
GetPerson(ctx context.Context, request GetPersonRequestObject) (GetPersonResponseObject, error)
// Update a person's name or ignore status
// (PUT /api/people/{id})
UpdatePerson(ctx context.Context, request UpdatePersonRequestObject) (UpdatePersonResponseObject, error)
// List events where this person was detected
// (GET /api/people/{id}/events)
ListPersonEvents(ctx context.Context, request ListPersonEventsRequestObject) (ListPersonEventsResponseObject, error)
// List faces belonging to a person
// (GET /api/people/{id}/faces)
ListPersonFaces(ctx context.Context, request ListPersonFacesRequestObject) (ListPersonFacesResponseObject, error)
// Get days with recordings for a given month
// (GET /api/recordings/calendar)
GetRecordingsCalendar(ctx context.Context, request GetRecordingsCalendarRequestObject) (GetRecordingsCalendarResponseObject, error)
// Export recording as a single MP4 for a time range
// (GET /api/recordings/export/{camera})
ExportRecording(ctx context.Context, request ExportRecordingRequestObject) (ExportRecordingResponseObject, error)
// List recording segments for a camera on a given date
// (GET /api/recordings/segments/{camera})
ListSegments(ctx context.Context, request ListSegmentsRequestObject) (ListSegmentsResponseObject, error)
// Get recording summary for a date across all cameras
// (GET /api/recordings/summary)
GetRecordingsSummary(ctx context.Context, request GetRecordingsSummaryRequestObject) (GetRecordingsSummaryResponseObject, error)
// Return cached storage breakdown
// (GET /api/storage)
GetStorage(ctx context.Context, request GetStorageRequestObject) (GetStorageResponseObject, error)
// List recent manual-delete audit rows
// (GET /api/storage/audit)
GetStorageAudit(ctx context.Context, request GetStorageAuditRequestObject) (GetStorageAuditResponseObject, error)
// Trigger an async retention pass
// (POST /api/storage/cleanup)
PostStorageCleanup(ctx context.Context, request PostStorageCleanupRequestObject) (PostStorageCleanupResponseObject, error)
// Delete segments/clips/snapshots in a scoped window
// (POST /api/storage/delete)
PostStorageDelete(ctx context.Context, request PostStorageDeleteRequestObject) (PostStorageDeleteResponseObject, error)
// List every consumable stream URL per camera across all protocols
// (GET /api/streaming/capabilities)
GetStreamingCapabilities(ctx context.Context, request GetStreamingCapabilitiesRequestObject) (GetStreamingCapabilitiesResponseObject, error)
// System information
// (GET /api/system)
GetSystem(ctx context.Context, request GetSystemRequestObject) (GetSystemResponseObject, error)
// Trigger manual recompression
// (POST /api/system/recompress/trigger)
TriggerRecompression(ctx context.Context, request TriggerRecompressionRequestObject) (TriggerRecompressionResponseObject, error)
// List API tokens for the authenticated user
// (GET /api/tokens)
ListTokens(ctx context.Context, request ListTokensRequestObject) (ListTokensResponseObject, error)
// Create a new API token
// (POST /api/tokens)
CreateToken(ctx context.Context, request CreateTokenRequestObject) (CreateTokenResponseObject, error)
// Revoke an API token
// (DELETE /api/tokens/{id})
DeleteToken(ctx context.Context, request DeleteTokenRequestObject) (DeleteTokenResponseObject, error)
// Prometheus metrics
// (GET /metrics)
GetMetrics(ctx context.Context, request GetMetricsRequestObject) (GetMetricsResponseObject, error)
}
StrictServerInterface represents all server handlers.
type SystemResponse ¶
type SystemResponse struct {
Cameras int `json:"cameras"`
Decoder string `json:"decoder"`
Online int `json:"online"`
// Sleeping Count of on-demand cameras resting between events.
Sleeping int `json:"sleeping"`
Storage string `json:"storage"`
StorageBytes int64 `json:"storage_bytes"`
Uptime string `json:"uptime"`
Version string `json:"version"`
}
SystemResponse defines model for SystemResponse.
type TalkbackCapabilities ¶
type TalkbackCapabilities struct {
Codec *TalkbackCapabilitiesCodec `json:"codec,omitempty"`
Reason *string `json:"reason,omitempty"`
Supported bool `json:"supported"`
}
TalkbackCapabilities defines model for TalkbackCapabilities.
type TalkbackCapabilitiesCodec ¶
type TalkbackCapabilitiesCodec string
TalkbackCapabilitiesCodec defines model for TalkbackCapabilities.Codec.
const ( PCMA TalkbackCapabilitiesCodec = "PCMA" PCMU TalkbackCapabilitiesCodec = "PCMU" )
Defines values for TalkbackCapabilitiesCodec.
func (TalkbackCapabilitiesCodec) Valid ¶
func (e TalkbackCapabilitiesCodec) Valid() bool
Valid indicates whether the value is a known member of the TalkbackCapabilitiesCodec enum.
type TimelineActivity ¶
TimelineActivity defines model for TimelineActivity.
type TimelineEvent ¶
type TimelineEvent struct {
EndTime *time.Time `json:"end_time,omitempty"`
Id string `json:"id"`
Label string `json:"label"`
Score float32 `json:"score"`
Timestamp time.Time `json:"timestamp"`
}
TimelineEvent defines model for TimelineEvent.
type TimelineResponse ¶
type TimelineResponse struct {
Activity []TimelineActivity `json:"activity"`
Events []TimelineEvent `json:"events"`
Segments []TimelineSegment `json:"segments"`
}
TimelineResponse defines model for TimelineResponse.
type TimelineSegment ¶
type TimelineSegment struct {
EndTime time.Time `json:"end_time"`
StartTime time.Time `json:"start_time"`
}
TimelineSegment defines model for TimelineSegment.
type TokenListItem ¶
type TokenListItem struct {
CreatedAt time.Time `json:"created_at"`
Id int64 `json:"id"`
LastUsedAt *time.Time `json:"last_used_at,omitempty"`
Name string `json:"name"`
Scopes []string `json:"scopes"`
TokenPrefix string `json:"token_prefix"`
}
TokenListItem defines model for TokenListItem.
type TokenListResponse ¶
type TokenListResponse struct {
Items []TokenListItem `json:"items"`
Total int `json:"total"`
}
TokenListResponse defines model for TokenListResponse.
type TokenRevokedResponse ¶
type TokenRevokedResponse struct {
Status TokenRevokedResponseStatus `json:"status"`
}
TokenRevokedResponse defines model for TokenRevokedResponse.
type TokenRevokedResponseStatus ¶
type TokenRevokedResponseStatus string
TokenRevokedResponseStatus defines model for TokenRevokedResponse.Status.
const (
Revoked TokenRevokedResponseStatus = "revoked"
)
Defines values for TokenRevokedResponseStatus.
func (TokenRevokedResponseStatus) Valid ¶
func (e TokenRevokedResponseStatus) Valid() bool
Valid indicates whether the value is a known member of the TokenRevokedResponseStatus enum.
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type TrackPerson201JSONResponse ¶
type TrackPerson201JSONResponse TrackPersonResponse
func (TrackPerson201JSONResponse) VisitTrackPersonResponse ¶
func (response TrackPerson201JSONResponse) VisitTrackPersonResponse(w http.ResponseWriter) error
type TrackPerson400JSONResponse ¶
type TrackPerson400JSONResponse Error
func (TrackPerson400JSONResponse) VisitTrackPersonResponse ¶
func (response TrackPerson400JSONResponse) VisitTrackPersonResponse(w http.ResponseWriter) error
type TrackPerson404JSONResponse ¶
type TrackPerson404JSONResponse Error
func (TrackPerson404JSONResponse) VisitTrackPersonResponse ¶
func (response TrackPerson404JSONResponse) VisitTrackPersonResponse(w http.ResponseWriter) error
type TrackPersonJSONRequestBody ¶
type TrackPersonJSONRequestBody = TrackPersonRequest
TrackPersonJSONRequestBody defines body for TrackPerson for application/json ContentType.
type TrackPersonRequest ¶
type TrackPersonRequest struct {
Name string `json:"name"`
}
TrackPersonRequest defines model for TrackPersonRequest.
type TrackPersonRequestObject ¶
type TrackPersonRequestObject struct {
Id string `json:"id"`
Body *TrackPersonJSONRequestBody
}
type TrackPersonResponse ¶
type TrackPersonResponse struct {
Method TrackPersonResponseMethod `json:"method"`
Name string `json:"name"`
PersonId int64 `json:"person_id"`
}
TrackPersonResponse defines model for TrackPersonResponse.
type TrackPersonResponseMethod ¶
type TrackPersonResponseMethod string
TrackPersonResponseMethod defines model for TrackPersonResponse.Method.
const ( TrackPersonResponseMethodBody TrackPersonResponseMethod = "body" TrackPersonResponseMethodFace TrackPersonResponseMethod = "face" TrackPersonResponseMethodNone TrackPersonResponseMethod = "none" )
Defines values for TrackPersonResponseMethod.
func (TrackPersonResponseMethod) Valid ¶
func (e TrackPersonResponseMethod) Valid() bool
Valid indicates whether the value is a known member of the TrackPersonResponseMethod enum.
type TrackPersonResponseObject ¶
type TrackPersonResponseObject interface {
VisitTrackPersonResponse(w http.ResponseWriter) error
}
type TriggerRecompression202Response ¶
type TriggerRecompression202Response struct {
}
func (TriggerRecompression202Response) VisitTriggerRecompressionResponse ¶
func (response TriggerRecompression202Response) VisitTriggerRecompressionResponse(w http.ResponseWriter) error
type TriggerRecompression409TextResponse ¶
type TriggerRecompression409TextResponse string
func (TriggerRecompression409TextResponse) VisitTriggerRecompressionResponse ¶
func (response TriggerRecompression409TextResponse) VisitTriggerRecompressionResponse(w http.ResponseWriter) error
type TriggerRecompressionRequestObject ¶
type TriggerRecompressionRequestObject struct {
}
type TriggerRecompressionResponseObject ¶
type TriggerRecompressionResponseObject interface {
VisitTriggerRecompressionResponse(w http.ResponseWriter) error
}
type UnescapedCookieParamError ¶
func (*UnescapedCookieParamError) Error ¶
func (e *UnescapedCookieParamError) Error() string
func (*UnescapedCookieParamError) Unwrap ¶
func (e *UnescapedCookieParamError) Unwrap() error
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error
type UpdateObject200JSONResponse ¶
type UpdateObject200JSONResponse StatusUpdated
func (UpdateObject200JSONResponse) VisitUpdateObjectResponse ¶
func (response UpdateObject200JSONResponse) VisitUpdateObjectResponse(w http.ResponseWriter) error
type UpdateObject400JSONResponse ¶
type UpdateObject400JSONResponse Error
func (UpdateObject400JSONResponse) VisitUpdateObjectResponse ¶
func (response UpdateObject400JSONResponse) VisitUpdateObjectResponse(w http.ResponseWriter) error
type UpdateObjectJSONRequestBody ¶
type UpdateObjectJSONRequestBody = UpdateObjectRequest
UpdateObjectJSONRequestBody defines body for UpdateObject for application/json ContentType.
type UpdateObjectRequest ¶
type UpdateObjectRequest struct {
MatchThreshold *float64 `json:"match_threshold,omitempty"`
Name *string `json:"name,omitempty"`
}
UpdateObjectRequest defines model for UpdateObjectRequest.
type UpdateObjectRequestObject ¶
type UpdateObjectRequestObject struct {
Id int64 `json:"id"`
Body *UpdateObjectJSONRequestBody
}
type UpdateObjectResponseObject ¶
type UpdateObjectResponseObject interface {
VisitUpdateObjectResponse(w http.ResponseWriter) error
}
type UpdatePerson200JSONResponse ¶
type UpdatePerson200JSONResponse StatusUpdated
func (UpdatePerson200JSONResponse) VisitUpdatePersonResponse ¶
func (response UpdatePerson200JSONResponse) VisitUpdatePersonResponse(w http.ResponseWriter) error
type UpdatePerson400JSONResponse ¶
type UpdatePerson400JSONResponse Error
func (UpdatePerson400JSONResponse) VisitUpdatePersonResponse ¶
func (response UpdatePerson400JSONResponse) VisitUpdatePersonResponse(w http.ResponseWriter) error
type UpdatePersonJSONRequestBody ¶
type UpdatePersonJSONRequestBody = UpdatePersonRequest
UpdatePersonJSONRequestBody defines body for UpdatePerson for application/json ContentType.
type UpdatePersonRequest ¶
type UpdatePersonRequest struct {
Ignore *bool `json:"ignore,omitempty"`
Name *string `json:"name,omitempty"`
}
UpdatePersonRequest defines model for UpdatePersonRequest.
type UpdatePersonRequestObject ¶
type UpdatePersonRequestObject struct {
Id int64 `json:"id"`
Body *UpdatePersonJSONRequestBody
}
type UpdatePersonResponseObject ¶
type UpdatePersonResponseObject interface {
VisitUpdatePersonResponse(w http.ResponseWriter) error
}
type UpdateZone200JSONResponse ¶
type UpdateZone200JSONResponse Zone
func (UpdateZone200JSONResponse) VisitUpdateZoneResponse ¶
func (response UpdateZone200JSONResponse) VisitUpdateZoneResponse(w http.ResponseWriter) error
type UpdateZone400JSONResponse ¶
type UpdateZone400JSONResponse Error
func (UpdateZone400JSONResponse) VisitUpdateZoneResponse ¶
func (response UpdateZone400JSONResponse) VisitUpdateZoneResponse(w http.ResponseWriter) error
type UpdateZone404JSONResponse ¶
type UpdateZone404JSONResponse Error
func (UpdateZone404JSONResponse) VisitUpdateZoneResponse ¶
func (response UpdateZone404JSONResponse) VisitUpdateZoneResponse(w http.ResponseWriter) error
type UpdateZoneJSONRequestBody ¶
type UpdateZoneJSONRequestBody = CreateZoneRequest
UpdateZoneJSONRequestBody defines body for UpdateZone for application/json ContentType.
type UpdateZoneRequestObject ¶
type UpdateZoneRequestObject struct {
Name string `json:"name"`
Zone string `json:"zone"`
Body *UpdateZoneJSONRequestBody
}
type UpdateZoneResponseObject ¶
type UpdateZoneResponseObject interface {
VisitUpdateZoneResponse(w http.ResponseWriter) error
}
type Zone ¶
type Zone struct {
Camera string `json:"camera"`
Enabled bool `json:"enabled"`
FaceRecognition bool `json:"face_recognition"`
Id int `json:"id"`
Labels []string `json:"labels"`
Name string `json:"name"`
Points [][]float32 `json:"points"`
TrackPresence bool `json:"track_presence"`
}
Zone defines model for Zone.
Source Files
¶
- auth.go
- bodylimit.go
- csp.go
- detections_sse.go
- doorbell_metrics.go
- generated.go
- handler_activities.go
- handler_auth.go
- handler_camera_control.go
- handler_cameras.go
- handler_cameras_manage.go
- handler_codecs.go
- handler_doorbell_answer.go
- handler_events.go
- handler_health.go
- handler_objects.go
- handler_partials.go
- handler_people.go
- handler_push.go
- handler_recordings.go
- handler_rtsp_test_conn.go
- handler_settings.go
- handler_storage.go
- handler_streaming.go
- handler_talkback.go
- hls_viewers.go
- jobs.go
- mjpeg_viewers.go
- request_class.go
- server.go
- setup.go
- tracing.go
- validation.go