ServicesClient

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.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun destroy()
Link copied to clipboard
open suspend override fun name(): String?

Read the current endpoint name from the local client.

Link copied to clipboard
open suspend override fun ping()

Ping the remote service to confirm connectivity.

Link copied to clipboard
open suspend override 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
open suspend override fun setName(name: String)

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

Link copied to clipboard
open suspend override fun submitNetworkDiagnostics(send: Boolean): DiagnosticsSummary

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