mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-11-10 17:15:09 +08:00
10 lines
305 B
Elixir
10 lines
305 B
Elixir
defmodule LivebookProto do
|
|
@moduledoc false
|
|
|
|
@mapping (for {_id, field_prop} <- LivebookProto.Request.__message_props__().field_props,
|
|
into: %{} do
|
|
{field_prop.type, field_prop.name_atom}
|
|
end)
|
|
|
|
def request_type(module), do: Map.fetch!(@mapping, module)
|
|
end
|