librdkafka

package
v0.0.0-...-f818fd3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2021 License: Apache-2.0 Imports: 1 Imported by: 1

README

Bundling prebuilt librdkafka

confluent-kafka-go bundles prebuilt statically linked versions of librdkafka for the following platforms:

  • MacOSX x64 (aka Darwin)
  • Linux glibc x64 (Ubuntu, CentOS, etc)
  • Linux musl x64 (Alpine)

Update bundled libraries

On each platform where a native static librdkafka has been built, run setup.sh from this directory, passing the librdkafka build directory as well as the platform (linux or darwin (osx)), and in the case of linux also if the build was using glibc or musl (alpine).

# On OSX:
$ ./setup.sh ~/src/librdkafka darwin

# On Ubuntu, CentOS, et.al:
$ ./setup.sh ~/src/librdkafka linux glibc

# On Alpine:
$ ./setup.sh ~/src/librdkafka linux musl

This will copy the static library and the rdkafka.h header file to this directory, as well as generate a new ../build_..go file for this platform + variant.

Repeat the process for darwin, linux glibc and linux alpine.

IMPORTANT: The librdkafka version (tag) must be identical for all platforms and variants.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LibrdkafkaVersion int = C.RD_KAFKA_VERSION

LibrdkafkaVersion is a numeric representation of the librdkafka version linked statically with this build.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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