Skip to main content

Module ghola

Module ghola 

Source
Expand description

Ghola sidecar HTTP client.

Forwards all HTTP requests to a locally running Ghola sidecar (127.0.0.1:18789). When stealth mode is enabled, the sidecar applies temporal drift and ghost signing to every outgoing request.

The sidecar is an external Go binary. When nothing answers on that address, http::shared::build starts it with start_sidecar (<binary> --serve, the binary found by ghola_install::find). The sidecar it started is kept here until stop_spawned_sidecar stops it; the caller decides when (the CLI asks at exit).

Structs§

GholaHttpClient
HTTP client that forwards requests to the Ghola sidecar bridge running on 127.0.0.1:18789. When stealth is true, the bridge applies temporal drift and ghost signing to every request.

Functions§

spawned_sidecar
The PID of the sidecar this process started, while it runs.
start_sidecar
Starts binary --serve and waits up to timeout for the sidecar to answer on the sidecar’s address (127.0.0.1:18789). Returns its PID. The sidecar is kept until stop_spawned_sidecar; it is not stopped when this process exits.
stop_spawned_sidecar
Stops the sidecar this process started. Returns its PID, or None when this process started none.