kafkautils

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package kafkautils provides Kafka utility functions that are shared between ia2 and the HTTP-to-Kafka bridge that ia2 relies on if it's running inside an enclave.

Index

Constants

View Source
const (
	// DefaultKafkaKey holds the default path to the Kafka certificate key.
	DefaultKafkaKey = "/etc/kafka/secrets/key"
	// DefaultKafkaCert holds the default path to the Kafka certificate.
	DefaultKafkaCert = "/etc/kafka/secrets/certificate"
)

Variables

This section is empty.

Functions

func NewKafkaWriter

func NewKafkaWriter(certFile, keyFile string) (*kafka.Writer, error)

NewKafkaWriter creates a new Kafka writer based on the environment variable envKafkaBroker and the given certificate files.

Types

This section is empty.

Jump to

Keyboard shortcuts

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