Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VersionEndpoint ¶
func VersionEndpoint(version string) func(w http.ResponseWriter, r *http.Request)
VersionEndpoint is the endpoint providing the version of this piece of software
Types ¶
type Autopilot ¶
type Autopilot struct { Enabled bool `json:"enabled"` HeadingOffset float64 `json:"headingOffset"` SetPoint float64 `json:"setPoint"` Course float64 `json:"course"` Speed float64 `json:"speed"` }
Autopilot is the serializable structure used to get the autopilot state
type Webserver ¶
type Webserver struct {
// contains filtered or unexported fields
}
Webserver is a web server component exposing both static files (static/) and the api (api/)
func (*Webserver) SetDashboard ¶
func (ws *Webserver) SetDashboard(dashboard queryable)
SetDashboard sets the Dashboard where the Webserver will get the LED state from
func (*Webserver) SetPanicChan ¶
func (ws *Webserver) SetPanicChan(panicChan chan interface{})
SetPanicChan sets the channel where panics are sent
func (*Webserver) SetPilot ¶
func (ws *Webserver) SetPilot(p pilotable)
SetPilot sets the Pilot used by the Webserver
Click to show internal directories.
Click to hide internal directories.