egrpc (egrpc v0.1.1)

View Source

Summary

Types

channel/0

-type channel() :: egrpc_stub:channel().

client/0

-type client() :: client_name() | channel().

client_name/0

-type client_name() :: atom().

grpc/0

-type grpc() :: #{pb_module := module(), path := binary(), service_name := atom(), rpc_def := rpc_def()}.

grpc_error/0

-type grpc_error() :: egrpc_error:grpc_error().

grpc_type/0

-type grpc_type() :: unary | client_streaming | server_streaming | bidi_streaming.

rpc_def/0

-type rpc_def() ::
          #{name := atom(),
            input := atom(),
            output := atom(),
            input_stream := boolean(),
            output_stream := boolean(),
            opts := list()}.

stream/0

-type stream() :: egrpc_stream:stream().