ArchAstro. Client
(archastro v0.2.0)
Copy Markdown
Immutable entry point for the ArchAstro Platform API.
Summary
Types
@type option() :: {:base_url, String.t()} | {:req, Req.Request.t()} | {:telemetry_metadata, telemetry_metadata()}
@type t() :: %ArchAstro.Client{ base_url: String.t(), request: Req.Request.t(), telemetry_metadata: telemetry_metadata(), token_binding: ArchAstro.TokenServer.Binding.t() }
@type telemetry_metadata() :: %{optional(atom()) => ArchAstro.JSON.t()}
Functions
@spec for_server( ArchAstro.TokenServer.provider() | ArchAstro.TokenServer.server_ref(), [option()] ) :: {:ok, t()} | {:error, ArchAstro.Error.reason()}
@spec for_session( ArchAstro.TokenServer.provider() | ArchAstro.TokenServer.server_ref(), String.t(), [ option() ] ) :: {:ok, t()} | {:error, ArchAstro.Error.reason()}
@spec public(ArchAstro.TokenServer.provider() | ArchAstro.TokenServer.server_ref(), [ option() ]) :: {:ok, t()} | {:error, ArchAstro.Error.reason()}