Skip to content
Go library for Erlang/Elixir interop
Go
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bertrpc Clean-up May 31, 2019
examples/clients/ejabberd-register Refactoring May 31, 2019
.gitignore Quick mockup Apr 17, 2019
CODE_OF_CONDUCT.md Add COC, Licence and contribution doc May 31, 2019
CONTRIBUTING.md Add COC, Licence and contribution doc May 31, 2019
LICENSE Add COC, Licence and contribution doc May 31, 2019
README.md Minor clean-up May 31, 2019
TODO.md Update roadmap May 25, 2019
go.mod Refactoring May 31, 2019

README.md

Go-Erlang

Go-Erlang is a set of tools for Go <-> Erlang interoperability.

The core of the library is the Erlang External Term Format. It is the internal format data to exchange Erlang terms over the network. This binary format is used for example in Erlang distribution protocol.

Installation

Usage

BERT and BERT-RPC library for Go

BERT library for Go is designed for simple data exchange between Go and Erlang/Elixir applications.

BERT stands for Binary ERlang Term. It is a Remote Procedure Call mechanism to support interop between Erlang code
and other programming languages.

BERT library implements serialization and deserialization, as well as a subset / variation of the BERT-RPC protocol for Go.

Here are the important points to note:

  • This version supports BERT-RPC over HTTP. It is not optimal for performance, but can rely on standard HTTP tooling features like connection pools, authentication, load balancing, etc.
  • This version implements the type I needed in Erlang External Term Format for interop with ejabberd.

Why use BERT?

If you want to exchange data with Erlang node, it is handy to use a format that support all the Erlang types, including atoms. Without having the concept of atoms explicitly in the data exchange protocol, you end up adding wrapper tuples and conversions on the Erlang side that become very painful.

If you do not need to interop with Erlang, we would recommend using Protobuf or MsgPack.

TODO

Support various transport for BERT-RPC client:

  • HTTP
  • TCP/IP
  • MQTT
You can’t perform that action at this time.