haskakafka-1.0.0: Kafka bindings for Haskell

Safe HaskellNone

Haskakafka.InternalSetup

Synopsis

Documentation

newKafka :: RdKafkaTypeT -> ConfigOverrides -> IO KafkaSource

Create kafka object with the given configuration. Most of the time you will not need to use this function directly (see withKafkaProducer and withKafkaConsumer).

newKafkaTopic :: Kafka -> String -> ConfigOverrides -> IO KafkaTopicSource

Create a kafka topic object with the given configuration. Most of the time you will not need to use this function directly (see withKafkaProducer and withKafkaConsumer)

setLogLevel :: Kafka -> KafkaLogLevel -> IO ()Source

Sets library log level (noisiness) with respect to a kafka instance

type ConfigOverrides = [(String, String)]Source

Used to override default config properties for consumers and producers

setKafkaConfValue :: KafkaConf -> String -> String -> IO ()Source

setKafkaTopicConfValue :: KafkaTopicConf -> String -> String -> IO ()Source

hPrintSupportedKafkaConf :: Handle -> IO ()Source

Prints out all supported Kafka conf properties to a handle

hPrintKafka :: Handle -> Kafka -> IO ()Source

Prints out all data associated with a specific kafka object to a handle

dumpConfFromKafka :: Kafka -> IO (Map String String)Source

Returns a map of the current kafka configuration

dumpConfFromKafkaTopic :: KafkaTopic -> IO (Map String String)Source

Returns a map of the current topic configuration

dumpKafkaTopicConf :: KafkaTopicConf -> IO (Map String String)Source

dumpKafkaConf :: KafkaConf -> IO (Map String String)Source

parseDump :: (CSizePtr -> IO (Ptr CString)) -> IO (Map String String)Source

listToTuple :: [String] -> [(String, String)]Source