Skip to content
Protobuf files & go bindings for Centrifuge Documents
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
common
coredocument
documenttypes
entity
errors
gen/go
invoice
notification
p2p
purchaseorder
scripts
.gitignore
.travis.yml
CONDUCT.md
Gopkg.lock
Gopkg.toml
LICENSE
Makefile
README.md
prototool.yaml

README.md

centrifuge-protobufs

Build Status

Protobuf files & go bindings for Centrifuge Documents. These define the document schema exchanged by nodes on the P2P network.

Getting help: Head over to our developer documentation at developer.centrifuge.io to learn how to setup a node and interact with it. If you have any questions, feel free to join our slack channel

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

Installation

$ 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

Install dependencies

make install

Quick intro to prototool

We are using prototool to lint or protobuf files and build our go stubs.

Helpful commands

Below a few helpful commands:

# To lint your files:
prototool lint

# To build the go stubs:
prototool gen-go

You can’t perform that action at this time.