Documentation ¶
Index ¶
- Constants
- type ConsumerConditions
- type ConsumerErrorHandler
- type ConsumerHandler
- type JsonValidator
- type KafkaClient
- func (kc *KafkaClient) BuildConsumer() (*consumerClient, error)
- func (kc *KafkaClient) BuildProducer() (*producerClient, error)
- func (kc *KafkaClient) SetConsumerConfig(cfg map[string]interface{}) *KafkaClient
- func (kc *KafkaClient) SetProducerConfig(cfg map[string]interface{}) *KafkaClient
- func (kc *KafkaClient) SetProducerTopicConfig(topicName string, partitionType int32) *KafkaClient
- func (kc *KafkaClient) SetTimeoutPolling(polling int) *KafkaClient
- type ProducerHeader
- type Validator
Constants ¶
View Source
const ( /** Type of partition, it will be handled by kafka library */ PartitionAny = kafka.PartitionAny )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonValidator ¶
type JsonValidator struct{}
func (*JsonValidator) IsReachable ¶
func (jv *JsonValidator) IsReachable(schema schema) bool
func (*JsonValidator) ValidateData ¶
func (jv *JsonValidator) ValidateData(msg []byte, schema schema) (bool, error)
type KafkaClient ¶
type KafkaClient struct {
// contains filtered or unexported fields
}
*
Kafka client
func (*KafkaClient) BuildConsumer ¶
func (kc *KafkaClient) BuildConsumer() (*consumerClient, error)
* Consumer builder
func (*KafkaClient) BuildProducer ¶
func (kc *KafkaClient) BuildProducer() (*producerClient, error)
* Producer builder
func (*KafkaClient) SetConsumerConfig ¶
func (kc *KafkaClient) SetConsumerConfig(cfg map[string]interface{}) *KafkaClient
* Consumer config setter
func (*KafkaClient) SetProducerConfig ¶
func (kc *KafkaClient) SetProducerConfig(cfg map[string]interface{}) *KafkaClient
* Producer config setter
func (*KafkaClient) SetProducerTopicConfig ¶
func (kc *KafkaClient) SetProducerTopicConfig(topicName string, partitionType int32) *KafkaClient
* Topic configuration setter for the producer. It sets what partition should be write the message into the topic passed as parameter
func (*KafkaClient) SetTimeoutPolling ¶
func (kc *KafkaClient) SetTimeoutPolling(polling int) *KafkaClient
* Timeout polling setter for the consumer when reading messages from kafka
Source Files ¶
Click to show internal directories.
Click to hide internal directories.