gomkafka

package
v0.0.0-...-04de8de Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2015 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gomkafka

func Gomkafka(config *KafkaConfig) (*sarama.Client, *sarama.SimpleProducer, error)

Gomkafka will Initialize a kafka client and producer based off of KafkaConfig.

Types

type KafkaConfig

type KafkaConfig struct {
	ClientID string
	Hosts    []string
	Topic    string
}

KafkaConfig represents the required configuration settings to create a Kafka client to send requests to a topic in a Kafka cluster.

Jump to

Keyboard shortcuts

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