Current section
Files
Jump to
Current section
Files
priv/templates/service.ex.eex
defmodule <%= mod_name %>.Service do
@moduledoc false
use GRPC.Service, name: <%= inspect(name) %>
<%= Enum.map methods, fn(method) -> %>
rpc <%= method %>
<% end %>
end
defmodule <%= mod_name %>.Stub do
@moduledoc false
use GRPC.Stub, service: <%= mod_name %>.Service
end