Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultGroupName ¶
func DefaultGroupName() string
DefaultGroupName returns a automatically generated group name based on the host
Types ¶
type Client ¶
type Client struct { RecvQ chan sarama.ConsumerMessage Producer sarama.SyncProducer ProducerTopic string SendQueue chan deployment.Event }
Client is a Kafka client
func NewClient ¶
NewClient takes a Kafka config object and returns a new client, or an error if the config is invalid.
func (*Client) ProducerLoop ¶
func (client *Client) ProducerLoop()
ProducerLoop sends messages from the event queue in perpetuity
type Config ¶
type Config struct { Enabled bool `json:"enabled"` Brokers []string `json:"brokers"` Topic string `json:"topic"` ClientID string `json:"client-id"` GroupID string `json:"group-id"` LogVerbosity string `json:"log-verbosity"` TLS TLS `json:"tls"` SASL SASL `json:"sasl"` }
Config is the Kafka configuration
Click to show internal directories.
Click to hide internal directories.