Documentation
¶
Index ¶
Constants ¶
const DefaultDeviceName = "phone"
defaultDeviceName names the device in its station address when --device-name says nothing.
Variables ¶
This section is empty.
Functions ¶
func CheckDeviceName ¶
checkDeviceName accepts a name that can live in a station address and a URL: a lowercase word of up to 32 letters, digits, _ or -, starting with a letter.
func DeviceOffer ¶
func DeviceOffer(name string, plat platform.Platform, hasHID, hasAudio bool, input string, label, model, osVersion string) enroll.Offer
deviceOffer describes the target as a device for the station: its name in the station's address (--device-name), its kind, what this Roadie can do with it, the pointer mode viewers should start in (--input, else the platform's), and the toolbar buttons the shared viewer should show, as the keyboard shortcuts the target takes.
func EnrollCommand ¶
enrollCommand is `roadie enroll [URL] --code CODE`: it joins a station and writes the policy entry; the running service picks it up on its next start.
Types ¶
type RigRunner ¶
rigRunner is the running rig, for /health and shutdown.
func StartRig ¶
func StartRig(handler http.Handler, offer enroll.Offer, onEnd func(deviceID, holdID string)) (*RigRunner, error)
startRig connects to the stations in the policy, if any. handler is the server's mux without the local login, which the gate replaces.