Documentation ¶
Index ¶
- type ManagementAPI
- func (api *ManagementAPI) ClearConfigSection(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) DeleteRecording(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) GetClock(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) GetConfig(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) GetVersion(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) PostClock(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) SetLocation(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 (*ManagementAPI) ClearConfigSection ¶
func (api *ManagementAPI) ClearConfigSection(w http.ResponseWriter, r *http.Request)
ClearConfigSection will delete the config from a section so the default values will be used.
func (*ManagementAPI) DeleteRecording ¶
func (api *ManagementAPI) DeleteRecording(w http.ResponseWriter, r *http.Request)
DeleteRecording deletes the given cptv file
func (*ManagementAPI) GetClock ¶
func (api *ManagementAPI) GetClock(w http.ResponseWriter, r *http.Request)
func (*ManagementAPI) GetConfig ¶
func (api *ManagementAPI) GetConfig(w http.ResponseWriter, r *http.Request)
GetConfig will return the config settings and the defaults
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) GetVersion ¶
func (api *ManagementAPI) GetVersion(w http.ResponseWriter, r *http.Request)
func (*ManagementAPI) PostClock ¶
func (api *ManagementAPI) PostClock(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) SetLocation ¶
func (api *ManagementAPI) SetLocation(w http.ResponseWriter, r *http.Request)
SetLocation is for specifically writing to location setting.
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.