Packages

Rebar3 plugin to generate grpc client codes for egrpc

Current section

Files

Jump to
rebar3_egrpc_plugin priv egrpc_client_service.template
Raw

priv/egrpc_client_service.template

{description, "egrpc gRPC client service modules template"}.
{variables, [
{fq_service_name, "", "Original fully qualified service name, as it'll appear in a request"},
{pb_module, "", "Name of protobuf module to get type specs from"},
{methods, [], "List of methods for service"},
{use_doc_attribute, true, "Whether to use doc attributes for methods documentation"},
{grpc_type, "", "Name of the gRPC method type, e.g. 'unary', 'server_streaming', 'client_streaming', 'bidi_streaming'"}
]}.
{template, "egrpc_client_service.erl", "{{out_dir}}/{{module_name}}.erl"}.