Skip to content

niku/elixir_protobuf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Protobuf

TODO: Add description

Installation

If available in Hex, the package can be installed by adding protobuf to your list of dependencies in mix.exs:

def deps do
  [
    {:protobuf, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/protobuf.

Integration Testing

To generate a python code test/integration/integrationtest_pb2.py for integration tests from .proto files:

$ docker run --rm -v $(pwd):/app niku/pytnoh3-protobuf \
    protoc \
        -I test/integration/proto \
        --python_out=test/integration/python \
        test/integration/proto/integrationtest.proto 

To generate json files based on protocol buffer messages for integration tests from test/integration/input.yaml:

$ docker run --rm -v $(pwd):/app niuk/python3-protobuf \
    python3 test/integration/python/generate_messages.py 

An object in json includes key that is expected value and value that is base64 encoded protocol buffer message representation.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published