package dune-rpc

  1. Overview
  2. Docs

Module V1.RegistrySource

The registry is where all running instances of dune rpc are stored.

It's used by clients to determine which dune rpc instance corresponds to the workspace they're trying to edit.

Sourcemodule Dune : sig ... end

a registered instance of dune. supposedly running and listening to rpc connections

Sourcemodule Config : sig ... end

The registry directory is located using xdg

Sourcetype t
Sourceval create : Config.t -> t
Sourceval current : t -> Dune.t list

currently detected running instances

Sourcemodule Refresh : sig ... end

the result of polling the registry

Sourcemodule Poll (Fiber : sig ... end) (_ : sig ... end) : sig ... end

we can poll the registry efficiently using the following functor

OCaml

Innovation. Community. Security.