remote

package
v0.0.0-...-0e5d3d6 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const DefaultDeviceName = "phone"

defaultDeviceName names the device in its station address when --device-name says nothing.

Variables

This section is empty.

Functions

func CheckDeviceName

func CheckDeviceName(name string) error

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

func EnrollCommand(args []string) int

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.

func RigPath

func RigPath(name string) (string, error)

Types

type RigRunner

type RigRunner struct {
	Rig *rig.Rig
	// contains filtered or unexported fields
}

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.

func (*RigRunner) Current

func (rr *RigRunner) Current() (*rig.StationEntry, string, string, nostr.SecretKey, bool)

current says who holds one of this rig's devices now, and through which station, for the hold recorder.

func (*RigRunner) Shutdown

func (rr *RigRunner) Shutdown()

func (*RigRunner) Status

func (rr *RigRunner) Status() map[string]any

status is the station block of /health.

Jump to

Keyboard shortcuts

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