binding

command
v3.2.7-0...-70c9be9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

README

About

This is the package used for supporting foreign language bindings.

C++11 is currently supported. Python support is being worked on.

Getting Started

To install the C++ binding:

$ cd $GOPATH/src/github.com/lni/dragonboat
$ make binding
$ sudo make install-binding

This will install the C++ binding to /usr/local/include and /usr/local/lib by default, use the INSTALL_PATH variable to specify where to install the header and lib files.
To uninstall the C++ binding from its default location:

sudo make uninstall-binding

Run C++ binding tests (gtest is required):

$ cd $GOPATH/src/github.com/lni/dragonboat
$ make clean
$ make test-cppwrapper

JasonYuchen provided some excellent examples on how to use the C++11 binding.

Status

The C++ binding is in BETA status. The limitations are:

  • Custom Log DB or Raft RPC modules are not supported.
  • Custom logger is not supported.

Contributors

JasonYuchen contributed the dragonboat v3.x support for the C++11 binding.

Documentation

Overview

Package binding contains utility functions and structs for making language bindings.

You can safely ignore this package when working on a dragonboat based Go application.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL