mirror of
				https://github.com/livebook-dev/livebook.git
				synced 2025-11-01 00:06:04 +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
 |