internal/

directory
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: AGPL-3.0

Directories

Path Synopsis
Package account is the client side of RemoHop accounts: `remohop login`, `remohop logout`, `remohop account`, the account part of `remohop devices`, and the host-side "account-trust" that lets a host accept the account's other devices.
Package account is the client side of RemoHop accounts: `remohop login`, `remohop logout`, `remohop account`, the account part of `remohop devices`, and the host-side "account-trust" that lets a host accept the account's other devices.
ledger
Package ledger is the signed membership log of a RemoHop account: the one piece of account state that does not depend on trusting the rendezvous server.
Package ledger is the signed membership log of a RemoHop account: the one piece of account state that does not depend on trusting the rendezvous server.
Package auth is RemoHop's authentication layer: Ed25519 identity keys, the password / pairing-token handshake (CPace bound to the TLS channel) that turns an encrypted-but-anonymous QUIC connection into an authenticated session, the host-side brute-force limiter and the pairing-token store.
Package auth is RemoHop's authentication layer: Ed25519 identity keys, the password / pairing-token handshake (CPace bound to the TLS channel) that turns an encrypted-but-anonymous QUIC connection into an authenticated session, the host-side brute-force limiter and the pairing-token store.
Package bg runs long-lived client-side commands (port forwards, FUSE mounts, clipboard sync) in the background and keeps a registry of them so `remohop ps` and `remohop stop` can find them again.
Package bg runs long-lived client-side commands (port forwards, FUSE mounts, clipboard sync) in the background and keeps a registry of them so `remohop ps` and `remohop stop` can find them again.
Package cfaccess checks Cloudflare Access tokens: the JWT that Cloudflare Access puts in the Cf-Access-Jwt-Assertion header (and the CF_Authorization cookie) of every request it lets through to an application behind a Cloudflare Tunnel.
Package cfaccess checks Cloudflare Access tokens: the JWT that Cloudflare Access puts in the Cf-Access-Jwt-Assertion header (and the CF_Authorization cookie) of every request it lets through to an application behind a Cloudflare Tunnel.
cfaccesstest
Package cfaccesstest makes Cloudflare Access tokens for tests: an RSA signing key set, its JWKS document and signed JWTs.
Package cfaccesstest makes Cloudflare Access tokens for tests: an RSA signing key set, its JWKS document and signed JWTs.
Package cli is the `remohop` command framework: a registry that feature packages add their subcommands to from init(), and the dispatcher that turns `remohop [global flags] [<ID>] <command> [args]` into a call.
Package cli is the `remohop` command framework: a registry that feature packages add their subcommands to from init(), and the dispatcher that turns `remohop [global flags] [<ID>] <command> [args]` into a call.
Package config locates RemoHop's on-disk state.
Package config locates RemoHop's on-disk state.
Package dial is the controlling side of connection establishment: it turns a target (9-digit ID, saved alias or host:port) into an authenticated *peer.Conn.
Package dial is the controlling side of connection establishment: it turns a target (9-digit ID, saved alias or host:port) into an authenticated *peer.Conn.
Package doctor is `remohop doctor`: one report of this machine's network situation as RemoHop sees it, Tailscale and the mesh network included, with what each finding means for connections.
Package doctor is `remohop doctor`: one report of this machine's network situation as RemoHop sees it, Tailscale and the mesh network included, with what each finding means for connections.
Package ffmpeg finds the ffmpeg program that screen sharing runs, and on Windows and macOS installs a verified build of it when there is none.
Package ffmpeg finds the ffmpeg program that screen sharing runs, and on Windows and macOS installs a verified build of it when there is none.
Package grant is RemoHop's scoped, expiring access for AI agents (and for anybody else a host owner wants to give less than everything): a grant names what a credential may do on a host (which services, which file roots, which commands), until when, how many sessions at once, whether each action needs the owner's approval and whether terminal output is recorded.
Package grant is RemoHop's scoped, expiring access for AI agents (and for anybody else a host owner wants to give less than everything): a grant names what a credential may do on a host (which services, which file roots, which commands), until when, how many sessions at once, whether each action needs the owner's approval and whether terminal output is recorded.
Package handoff gives a browser a URL that carries an access token without putting the token on a command line.
Package handoff gives a browser a URL that carries an access token without putting the token on a command line.
Package hostd is the controlled side of RemoHop: the daemon behind `remohop host`.
Package hostd is the controlled side of RemoHop: the daemon behind `remohop host`.
Package inject synthesises pointer and keyboard input on the host's desktop.
Package inject synthesises pointer and keyboard input on the host's desktop.
Package lan finds RemoHop hosts on the local network without a rendezvous server and without typing an address.
Package lan finds RemoHop hosts on the local network without a rendezvous server and without typing an address.
Package localui serves a program's own user interface as a web page on 127.0.0.1, for the desktop app (internal/desktop), whose native window or browser window shows it.
Package localui serves a program's own user interface as a web page on 127.0.0.1, for the desktop app (internal/desktop), whose native window or browser window shows it.
Package mcp is `remohop mcp`: a Model Context Protocol server on stdio that exposes RemoHop's remote shell, port forwarding, clipboard, screenshot, system information and file services as tools, so an AI agent can operate remote machines by their 9-digit ID.
Package mcp is `remohop mcp`: a Model Context Protocol server on stdio that exposes RemoHop's remote shell, port forwarding, clipboard, screenshot, system information and file services as tools, so an AI agent can operate remote machines by their 9-digit ID.
Package mobile is the Go core of the RemoHop Android and iOS apps.
Package mobile is the Go core of the RemoHop Android and iOS apps.
nat
Package nat gets two peers behind NATs talking directly: it gathers the addresses a peer might be reachable at (candidates), discovers how the local NAT behaves, and punches UDP holes so that a QUIC connection can be established peer to peer.
Package nat gets two peers behind NATs talking directly: it gathers the addresses a peer might be reachable at (candidates), discovers how the local NAT behaves, and punches UDP holes so that a QUIC connection can be established peer to peer.
vnet
Package vnet is an in-process UDP network with simulated NAT boxes, for testing rendezvous and hole punching without real routers.
Package vnet is an in-process UDP network with simulated NAT boxes, for testing rendezvous and hole punching without real routers.
Package nativeui is the interface of the desktop app's native windows: the types internal/desktop programs against, and the registration through which internal/webview provides them.
Package nativeui is the interface of the desktop app's native windows: the types internal/desktop programs against, and the registration through which internal/webview provides them.
Package nowindow starts helper programs (ffmpeg, sc.exe, net.exe, route, netsh) without a console window on Windows.
Package nowindow starts helper programs (ffmpeg, sc.exe, net.exe, route, netsh) without a console window on Windows.
Package ntlm is the client side of NTLMv2 authentication (MS-NLMP), as far as an HTTP proxy asks for it: the two messages a client sends, built from a user name, a password and the proxy's challenge.
Package ntlm is the client side of NTLMv2 authentication (MS-NLMP), as far as an HTTP proxy asks for it: the two messages a client sends, built from a user name, a password and the proxy's challenge.
Package peer is the session layer every RemoHop feature is built on.
Package peer is the session layer every RemoHop feature is built on.
peertest
Package peertest gives service packages a real client<->host session to test against without rendezvous, hole punching or passwords: two QUIC endpoints on loopback wired straight into the session layer.
Package peertest gives service packages a real client<->host session to test against without rendezvous, hole punching or passwords: two QUIC endpoints on loopback wired straight into the session layer.
Package perm is the table that says which permission feature each host service belongs to.
Package perm is the table that says which permission feature each host service belongs to.
Package portmap asks the local router to forward one UDP port to this machine, so that a host behind a NAT has a public address clients can reach whatever their own NAT does.
Package portmap asks the local router to forward one UDP port to this machine, so that a host behind a NAT has a public address clients can reach whatever their own NAT does.
Package quick is RemoHop's quick-support experience: `remohop quick` (and the RemoHop.exe / RemoHop.app builds of cmd/remohop-quick, which run it when started without arguments).
Package quick is RemoHop's quick-support experience: `remohop quick` (and the RemoHop.exe / RemoHop.app builds of cmd/remohop-quick, which run it when started without arguments).
Package redact removes secrets from text that leaves the device in a diagnostic report (the mobile apps' and the desktop app's): passwords, tokens, keys.
Package redact removes secrets from text that leaves the device in a diagnostic report (the mobile apps' and the desktop app's): passwords, tokens, keys.
Package service installs `remohop host` as an operating-system service that starts at boot and is restarted when it fails: a systemd unit on Linux, a launchd job on macOS, and a Windows service on Windows.
Package service installs `remohop host` as an operating-system service that starts at boot and is restarted when it fails: a systemd unit on Linux, a launchd job on macOS, and a Windows service on Windows.
Package signal is RemoHop's rendezvous service: the server behind `remohop signal` and the client hosts and dialling peers use to talk to it.
Package signal is RemoHop's rendezvous service: the server behind `remohop signal` and the client hosts and dialling peers use to talk to it.
Package snapenv adapts RemoHop to running from its snap package (packaging/snap).
Package snapenv adapts RemoHop to running from its snap package (packaging/snap).
svc
clip
Package clip is the RemoHop clipboard service: two-way sync of text and images between the local and the remote machine, one-shot get/set, and a client-side history that can be exported as Markdown for LLMs.
Package clip is the RemoHop clipboard service: two-way sync of text and images between the local and the remote machine, one-shot get/set, and a client-side history that can be exported as Markdown for LLMs.
desktop
Package desktop is the RemoHop remote desktop.
Package desktop is the RemoHop remote desktop.
desktop/h264test
Package h264test makes synthetic H.264 elementary streams in Annex B form for tests of the provided-screen path (internal/svc/desktop's Screen and the mobile host mode): a real SPS that parses to the size asked for, a PPS, and slice NAL units whose payload is filler.
Package h264test makes synthetic H.264 elementary streams in Annex B form for tests of the provided-screen path (internal/svc/desktop's Screen and the mobile host mode): a real SPS that parses to the size asked for, a PPS, and slice NAL units whose payload is filler.
forward
Package forward is the RemoHop port-forwarding service.
Package forward is the RemoHop port-forwarding service.
fs
Package fs is the RemoHop fs service: remote file access, transfer and mounting.
Package fs is the RemoHop fs service: remote file access, transfer and mounting.
fs/mount
Package mount implements `remohop <ID> mount` and `remohop umount`: a directory of the remote machine shown as a local directory (or drive), so local editors, IDEs and tools work on remote code directly.
Package mount implements `remohop <ID> mount` and `remohop umount`: a directory of the remote machine shown as a local directory (or drive), so local editors, IDEs and tools work on remote code directly.
fs/rfs
Package rfs is the remote filesystem protocol of the RemoHop fs service: the host handlers that expose the host user's filesystem and the Client that the CLI commands (cp, sync, mount) and the MCP server use.
Package rfs is the remote filesystem protocol of the RemoHop fs service: the host handlers that expose the host user's filesystem and the Client that the CLI commands (cp, sync, mount) and the MCP server use.
fs/xfer
Package xfer implements file transfer between the local machine and a RemoHop host: `remohop <ID> cp` and `remohop <ID> sync`, as a library (Copy, Sync) with thin CLI wrappers.
Package xfer implements file transfer between the local machine and a RemoHop host: `remohop <ID> cp` and `remohop <ID> sync`, as a library (Copy, Sync) with thin CLI wrappers.
hint
Package hint lets a viewer send a short one-line text hint to the person at the host (a phone's owner), shown by the host app.
Package hint lets a viewer send a short one-line text hint to the person at the host (a phone's owner), shown by the host app.
input
Package input is the RemoHop input service: single pointer and keyboard actions on the remote desktop (click, move, type, key, scroll), so that people and AI agents can drive a GUI from the command line in an observe (screenshot), act, verify loop.
Package input is the RemoHop input service: single pointer and keyboard actions on the remote desktop (click, move, type, key, scroll), so that people and AI agents can drive a GUI from the command line in an observe (screenshot), act, verify loop.
screenshot
Package screenshot is the RemoHop screenshot service: it captures the remote machine's screen so that people and multimodal models can look at UI state or error dialogs.
Package screenshot is the RemoHop screenshot service: it captures the remote machine's screen so that people and multimodal models can look at UI state or error dialogs.
serial
Package serial carries a serial port of the host to the client as a local virtual serial port.
Package serial carries a serial port of the host to the client as a local virtual serial port.
shell
Package shell is the RemoHop remote shell service: interactive persistent terminal sessions (`remohop <ID> shell`), non-interactive commands (`remohop <ID> shell -c`) and detached background jobs (`remohop <ID> spawn`, `jobs`, `logs`, `kill`).
Package shell is the RemoHop remote shell service: interactive persistent terminal sessions (`remohop <ID> shell`), non-interactive commands (`remohop <ID> shell -c`) and detached background jobs (`remohop <ID> spawn`, `jobs`, `logs`, `kill`).
sysinfo
Package sysinfo is the RemoHop sysinfo service: host handler, client API and CLI.
Package sysinfo is the RemoHop sysinfo service: host handler, client API and CLI.
usb
Package usb exports USB devices of the host to the client over the session using the Linux USB/IP kernel drivers (Linux on both sides, root on both sides).
Package usb exports USB devices of the host to the client over the session using the Linux USB/IP kernel drivers (Linux on both sides, root on both sides).
vpn
Package vpn tunnels IP packets through a RemoHop session: `remohop <ID> vpn up` gives this machine and the host a virtual network interface each, joined by the session, and optionally routes subnets on the host's side (or all traffic) through it.
Package vpn tunnels IP packets through a RemoHop session: `remohop <ID> vpn up` gives this machine and the host a virtual network interface each, joined by the session, and optionally routes subnets on the host's side (or all traffic) through it.
wake
Package wake is the RemoHop Wake-on-LAN service: the magic packet itself, a host handler that sends it on the host's LAN, a client API, and the `remohop wake` / `remohop <ID> wol` commands.
Package wake is the RemoHop Wake-on-LAN service: the magic packet itself, a host handler that sends it on the host's LAN, a client API, and the `remohop wake` / `remohop <ID> wol` commands.
Package sysproxy finds the HTTP proxy a connection has to go through, for the one thing RemoHop sends over HTTP: the websocket bridge to the rendezvous server (internal/wsdgram), which is the way out of a network that allows nothing else.
Package sysproxy finds the HTTP proxy a connection has to go through, for the one thing RemoHop sends over HTTP: the websocket bridge to the rendezvous server (internal/wsdgram), which is the way out of a network that allows nothing else.
Package tailnet detects a running Tailscale on this machine, without depending on it: no Tailscale code is linked in, and nothing here needs Tailscale to be installed.
Package tailnet detects a running Tailscale on this machine, without depending on it: no Tailscale code is linked in, and nothing here needs Tailscale to be installed.
Package unattended gives the Windows service (`remohop service install --unattended`) the interactive console session: its screen, including the sign-in screen, the lock screen and UAC prompts on the secure desktop, and its keyboard and mouse.
Package unattended gives the Windows service (`remohop service install --unattended`) the interactive console session: its screen, including the sign-in screen, the lock screen and UAC prompts on the secure desktop, and its keyboard and mouse.
Package update finds out whether a newer RemoHop release exists and how this copy should be upgraded.
Package update finds out whether a newer RemoHop release exists and how this copy should be upgraded.
Package web is the RemoHop web gateway: `remohop web` runs on a machine the user controls, speaks the normal P2P session to a remote host, and serves a browser UI (desktop, terminal, files, clipboard, info).
Package web is the RemoHop web gateway: `remohop web` runs on a machine the user controls, speaks the normal P2P session to a remote host, and serves a browser UI (desktop, terminal, files, clipboard, info).
Package webview shows web pages in native windows, with a tray icon, from a pure Go program: WebView2 on Windows (through the COM interface, see github.com/jchv/go-webview2), WKWebView on macOS and WebKitGTK on Linux (both through purego, without cgo).
Package webview shows web pages in native windows, with a tray icon, from a pure Go program: WebView2 on Windows (through the COM interface, see github.com/jchv/go-webview2), WKWebView on macOS and WebKitGTK on Linux (both through purego, without cgo).
Package wincursor reads the Windows mouse pointer: where it is and what it looks like.
Package wincursor reads the Windows mouse pointer: where it is and what it looks like.
Package wintest has the helpers of RemoHop's Windows end-to-end tests (the REMOHOP_INPUT_E2E and REMOHOP_DESKTOP_E2E tests): a real top-level window to capture or type into, started in a helper PowerShell process so that everything the tests see goes through the real window system, and diagnostics about the desktop the test runs on.
Package wintest has the helpers of RemoHop's Windows end-to-end tests (the REMOHOP_INPUT_E2E and REMOHOP_DESKTOP_E2E tests): a real top-level window to capture or type into, started in a helper PowerShell process so that everything the tests see goes through the real window system, and diagnostics about the desktop the test runs on.
Package wire implements the two framings every RemoHop stream protocol is built from:
Package wire implements the two framings every RemoHop stream protocol is built from:
Package wsdgram carries UDP datagrams over a WebSocket, so that a peer in a network that lets only HTTPS out (CI runners, cloud containers, corporate proxies) can still reach a rendezvous server and its relay.
Package wsdgram carries UDP datagrams over a WebSocket, so that a peer in a network that lets only HTTPS out (CI runners, cloud containers, corporate proxies) can still reach a rendezvous server and its relay.
Package x11disp is the single implementation of "which X display should this daemon use, and how does it authenticate to it".
Package x11disp is the single implementation of "which X display should this daemon use, and how does it authenticate to it".
xvfbtest
Package xvfbtest ends the private X servers tests start.
Package xvfbtest ends the private X servers tests start.

Jump to

Keyboard shortcuts

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