Documentation ¶
Index ¶
- func AboutHandler(w http.ResponseWriter, r *http.Request, conf *goconfig.Config)
- func AboutHandlerGen(conf *goconfig.Config) func(http.ResponseWriter, *http.Request)
- func AdvancedMenuHandler(w http.ResponseWriter, r *http.Request)
- func CheckInterfaceHandler(w http.ResponseWriter, r *http.Request)
- func DiskMemoryHandler(w http.ResponseWriter, r *http.Request)
- func GenLocationHandler(config *goconfig.Config) func(w http.ResponseWriter, r *http.Request)
- func GetRaspberryPiSerialNumber() string
- func GetSaltMinionID() string
- func HeaderInfo() *headers.HeaderInfo
- func IndexHandler(w http.ResponseWriter, r *http.Request)
- func LastFrame() *cptvframe.Frame
- func LocationHandler(config *goconfig.Config, w http.ResponseWriter, r *http.Request)
- func NetworkHandler(w http.ResponseWriter, r *http.Request)
- func RecordHandler(w http.ResponseWriter, r *http.Request)
- func RecordStatusHandler(w http.ResponseWriter, r *http.Request)
- func Rename(w http.ResponseWriter, r *http.Request)
- func Run() error
- func SetHeadInfo(headerInfo *headers.HeaderInfo)
- func SetLastFrame(frame *cptvframe.Frame)
- func SetProcessor(p *motion.MotionProcessor)
- func TimeHandler(w http.ResponseWriter, r *http.Request)
- func WebsocketServer(ws *websocket.Conn)
- func WifiNetworkHandler(w http.ResponseWriter, r *http.Request)
- type Config
- type FrameInfo
- type WebsocketRegistration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AboutHandler ¶
AboutHandler shows the currently installed packages on the device.
func AboutHandlerGen ¶
AboutHandlerGen is a wrapper for the AboutHandler function.
func AdvancedMenuHandler ¶
func AdvancedMenuHandler(w http.ResponseWriter, r *http.Request)
AdvancedMenuHandler is a screen to more advanced settings.
func CheckInterfaceHandler ¶
func CheckInterfaceHandler(w http.ResponseWriter, r *http.Request)
CheckInterfaceHandler checks an interface to see if it is up or down. To do this the ping command is used to send data to Cloudfare at 1.1.1.1
func DiskMemoryHandler ¶
func DiskMemoryHandler(w http.ResponseWriter, r *http.Request)
DiskMemoryHandler shows disk space usage and memory usage
func GenLocationHandler ¶
func GetRaspberryPiSerialNumber ¶ added in v1.0.1
func GetRaspberryPiSerialNumber() string
Return the serial number for the Raspberr Pi in the device.
func GetSaltMinionID ¶ added in v1.0.1
func GetSaltMinionID() string
Return the salt minion ID for the device.
func HeaderInfo ¶
func HeaderInfo() *headers.HeaderInfo
func IndexHandler ¶
func IndexHandler(w http.ResponseWriter, r *http.Request)
IndexHandler is the root handler.
func LocationHandler ¶
LocationHandler shows and updates the location of the device.
func NetworkHandler ¶
func NetworkHandler(w http.ResponseWriter, r *http.Request)
NetworkHandler - Show the status of each network interface
func RecordHandler ¶ added in v0.5.0
func RecordHandler(w http.ResponseWriter, r *http.Request)
RecordHandler will show a frame from the camera to help with positioning
func RecordStatusHandler ¶ added in v0.5.0
func RecordStatusHandler(w http.ResponseWriter, r *http.Request)
func Rename ¶
func Rename(w http.ResponseWriter, r *http.Request)
Rename page to change device name and group
func SetHeadInfo ¶
func SetHeadInfo(headerInfo *headers.HeaderInfo)
func SetLastFrame ¶
func SetProcessor ¶ added in v0.5.0
func SetProcessor(p *motion.MotionProcessor)
func TimeHandler ¶
func TimeHandler(w http.ResponseWriter, r *http.Request)
func WebsocketServer ¶ added in v0.2.0
func WifiNetworkHandler ¶
func WifiNetworkHandler(w http.ResponseWriter, r *http.Request)
WifiNetworkHandler show the wireless networks listed in the wpa_supplicant configuration