Current section

Files

Jump to
twirp priv templates service.ex.eex
Raw

priv/templates/service.ex.eex

# Generated by the protobuf compile. DO NOT EDIT!
defmodule <%= mod_name %>Service do
@moduledoc false
use Twirp.Service
package "<%= package %>"
service "<%= service_name %>"
<%= Enum.map methods, fn(method) -> %>
rpc <%= method %>
<% end %>
end
defmodule <%= mod_name %>Client do
@moduledoc false
use Twirp.Client, service: <%= mod_name %>Service
end