ServicesClientInterface

Client for services.iroh.computer.

Construct with `Self::create`; metrics are pushed automatically while the client is alive. Drop the client (or let it go out of scope) to stop.

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract suspend fun name(): String?

Read the current endpoint name from the local client.

Link copied to clipboard
abstract suspend fun ping()

Ping the remote service to confirm connectivity.

Link copied to clipboard
abstract suspend fun pushMetrics()

Push the current metrics snapshot now. (Metrics are also pushed on the interval configured at build time; this lets you force a flush.)

Link copied to clipboard
abstract suspend fun setName(name: String)

Set the endpoint name cloud-side. Must be 2–128 UTF-8 bytes.

Link copied to clipboard

Run a local network-diagnostics report. When send is true the report is also submitted to iroh-services for storage.