module Tilde_client: sig .. end
Tildelink discovery client
type t
The type of tildelink discovery clients.
val create : keypair:string * string ->
uri:Tilde_uri.t -> port:int -> ZMQ.Context.t -> t Lwt.t
create uri creates a client with local identity keypair
and discovery service URI uri. As tilde:// URIs may not
contain the port, it is provided separately.
type node_info = {
}
The type of discovery node information.
type 'a result = ('a, string * string) CCError.t
The type of request results. The error is comprised of code, message.
val node_info : t -> node_info result Lwt.t
node_info client returns information about the node client
is connected to.
val service_list : t ->
(Tilde_uri.t * Tilde_endpoint.t list) list result Lwt.t
service_list client returns the list of all services registered
at the node client is connected to.
val discover : Tilde_uri.t ->
t -> Tilde_endpoint.t list result Lwt.t
discover returns the list of endpoints corresponding to the service,
if one is registered at the node client is connected to.