Nostr.Query (nostr_access v0.3.3)

View Source

Manages a single query request across multiple relays.

Summary

Functions

Cancels a query.

Returns a specification to start this module under a supervisor.

Starts a new query.

Functions

cancel(query_pid)

@spec cancel(pid()) :: :ok

Cancels a query.

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(arg)

@spec start_link({[String.t()], map(), pid(), Keyword.t()}) ::
  {:ok, pid()} | {:error, term()}

Starts a new query.