Protobuf files & go bindings for Centrifuge Documents. These define the document schema exchanged by nodes on the P2P network.
DISCLAIMER: The code released here presents a very early alpha version that should not be used in production and has not been audited. Use this at your own risk.
How to commit
Make sure you run the
make before committing to make sure the generated files are up to date:
# To install dependencies and generate files make all # To just generate files make gen_proto
$ make help usage: make [target] ... targets: help Show this help message. install Install dependencies required to generate bindings & documentation vendorinstall Installs all protobuf dependencies with go-vendorinstall lint runs prototool lint proto-gen-go generates the go bindings proto-all runs prototool all
Making sure all dependencies are installed
Quick intro to prototool
We are using prototool to lint or protobuf files and build our go stubs.
Below a few helpful commands:
# To lint your files: prototool lint # To build the go stubs: prototool gen-go