Documentation ¶
Index ¶
- type ManagementAPI
- func (api *ManagementAPI) DeleteRecording(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) GetDeviceInfo(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) GetRecording(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) GetRecordings(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) GetSignalStrength(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) Reboot(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) Reregister(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) TakeSnapshot(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ManagementAPI ¶
type ManagementAPI struct {
// contains filtered or unexported fields
}
func NewAPI ¶
func NewAPI(cptvDir string) *ManagementAPI
func (*ManagementAPI) DeleteRecording ¶
func (api *ManagementAPI) DeleteRecording(w http.ResponseWriter, r *http.Request)
DeleteRecording deletes the given cptv file
func (*ManagementAPI) GetDeviceInfo ¶
func (api *ManagementAPI) GetDeviceInfo(w http.ResponseWriter, r *http.Request)
GetDeviceInfo returns information about this device
func (*ManagementAPI) GetRecording ¶
func (api *ManagementAPI) GetRecording(w http.ResponseWriter, r *http.Request)
GetRecording downloads a cptv file
func (*ManagementAPI) GetRecordings ¶
func (api *ManagementAPI) GetRecordings(w http.ResponseWriter, r *http.Request)
GetRecordings returns a list of cptv files in a array.
func (*ManagementAPI) GetSignalStrength ¶
func (api *ManagementAPI) GetSignalStrength(w http.ResponseWriter, r *http.Request)
func (*ManagementAPI) Reboot ¶
func (api *ManagementAPI) Reboot(w http.ResponseWriter, r *http.Request)
Reboot will reboot the device after a delay so a response can be sent back
func (*ManagementAPI) Reregister ¶
func (api *ManagementAPI) Reregister(w http.ResponseWriter, r *http.Request)
Reregister can change the devices name and gruop
func (*ManagementAPI) TakeSnapshot ¶
func (api *ManagementAPI) TakeSnapshot(w http.ResponseWriter, r *http.Request)
TakeSnapshot will request a new snapshot to be taken by thermal-recorder
Click to show internal directories.
Click to hide internal directories.