Commit Graph

7 Commits

Author SHA1 Message Date
Saxon f336a03d7a revid: general bug fixing
Use http instead of https in gvctrl getLogin request. Gave RTP client a close method so that the conn can
be closed after we're done with the client. Put timeout on reading from the RTP client PacketConn so that
we don't hang on the ReadFrom call if the conn is closed. Closing the RTSP and RTP clients when
startRTSPCamera is returned.
2019-10-22 23:04:33 +10:30
Saxon 239db674a3 input/gvctrl: using log-in rather than log in in comments 2019-10-14 16:07:15 +10:30
Saxon 0111ba706d input/gvctrl: using login or Login rather than logIn or LogIn 2019-10-14 16:05:38 +10:30
Saxon c726571399 input/gvctrl/request.go: added documentation to request.go 2019-10-14 11:05:11 +10:30
Saxon ab71c2cb06 input/gvctrl/gvctrl-cli/main.go: added sub package gvctrl-cli under gvctrl
gvctrl-cli provides a command line interface for controlling the geovision camera. Good for
testing purposes.
2019-10-13 21:52:48 +10:30
Saxon afe136a51d input/gvctrl/gvctrl_test.go: added TestPopulateForm to test construction of settings form and fixed bugs 2019-10-13 12:42:31 +10:30
Saxon e56455f7d0 input/gvctrl: added Set function with functional options for controlling GeoVision
Added a file called gvctrl.go which holds all exported functions, including Set,
and the options available for use with Set. This file also holds important consts
and the settings struct. Also added a file called request.go, which houses 3
functions that are in charge of creating HTTP requests, firstly to get the log in
page from which a log in request body can be generated, then to submit the generated
log in request body, and then to submit the settings. Finally a utils.go file has
been added to house a few helper functions.
2019-10-11 20:24:44 +10:30