helper

package
v0.0.0-...-6b1a66d Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package helper implements general helper methods.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(err error)

Check checks the error

func Confirmation

func Confirmation(s string) bool

Confirmation asks the user if he really intends to carry out the concerned action.

func ConnectKafkaClient

func ConnectKafkaClient() (sarama.Client, *sarama.Broker)

ConnectKafkaClient makes a client connection to a Kafka cluster.

func GetConsumer

func GetConsumer() sarama.Consumer

GetConsumer returns a Kafka consumer.

func GetProducer

func GetProducer() sarama.AsyncProducer

GetProducer returns a Kafka consumer.

func RetrieveMetadata

func RetrieveMetadata(broker *sarama.Broker) *sarama.MetadataResponse

RetrieveMetadata retrieve the metadata from the Kafka broker.

Types

This section is empty.

Jump to

Keyboard shortcuts

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