Incant.Service.Client (incant v0.1.0)

Copy Markdown

Client-side handle for an Incant service exposed through SafeRPC.

The client stores the SafeRPC endpoint and the discovered service module so callers can use Incant service verbs without repeating {Module, function} operation tuples at each call site.

Summary

Types

endpoint()

@type endpoint() :: Path.t() | pid() | atom()

t()

@type t() :: %Incant.Service.Client{
  binding: map() | nil,
  descriptor: SafeRPC.Descriptor.t() | nil,
  endpoint: endpoint(),
  module: module(),
  service: atom() | String.t() | nil,
  version: String.t() | nil
}