api

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2019 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

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(config *goconfig.Config, appVersion string) (*ManagementAPI, error)

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

Jump to

Keyboard shortcuts

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