netlify-commons

module
v0.58.9 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: MIT

README

netlify-commons

This is a core library that will add common features for our services.

The ones that have their own right now will be migrated as needed

Mostly this deals with configuring logging, messaging (rabbit && nats), and loading configuration.

Testing

Prerequisites

If running on Apple silicon, the librdkafka library will need to be linked dynamically. We may want to keep an eye on issues in the confluent-kakfa-go repository for alternative approaches that we could use in the future.

brew install openssl
brew install librdkafka
brew install pkg-config

And add PKG_CONFIG_PATH to your ~/.bashrc or ~/.zshrc (as instructed by brew info openssl)

export PKG_CONFIG_PATH="/opt/homebrew/opt/openssl@3/lib/pkgconfig"

Directories

Path Synopsis
Package instrument provides the tool to emit the events to the instrumentation destination.
Package instrument provides the tool to emit the events to the instrumentation destination.
Package kafka provides a Consumer and a Producer for basic Kafka operations.
Package kafka provides a Consumer and a Producer for basic Kafka operations.

Jump to

Keyboard shortcuts

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