Protox (Protox v1.3.1) View Source
Use this module to generate the Elixir modules corresponding to a set of protobuf definitions.
Examples
From a set of files:
defmodule Foo do
use Protox,
files: [
"./defs/foo.proto",
"./defs/bar.proto",
"./defs/baz/fiz.proto",
]
endFrom a string:
defmodule Bar do
use Protox,
schema: """
syntax = "proto3";
message Baz {
}
message Foo {
map<int32, Baz> b = 2;
}
"""
endThe generated modules respect the package declaration. For instance, in the above example,
both the Fiz.Baz and Fiz.Foo modules will be generated.
See README for detailed instructions.
Link to this section Summary
Link to this section Functions
Link to this function