Documentation
¶
Index ¶
- func AssertEquals(t *testing.T, a, b []*confluent.Message)
- func AssertMessageEquals(t *testing.T, m1, m2 *confluent.Message)
- func AssertMessagesinTopic(t *testing.T, topic string, msgs []*confluent.Message)
- func ConsumeMessages(t *testing.T, topic string) []*confluent.Message
- func CreateTopics(t *testing.T, nbTopic int, nbPartitions []int, prefix string) []string
- func FullMessage(topic string, key, value interface{}, epoch int64, targetTopic string, ...) *confluent.Message
- func GetConsumerConfig(prefix string) *confluent.ConfigMap
- func GetProducerConfig() *confluent.ConfigMap
- func Message(topic string, key, value interface{}, epoch int64) *confluent.Message
- func Messages(topic string, epochs []int64) []*confluent.Message
- func NewKafkaStore(t *testing.T, nbTopic int, nbPartitions []int) (store *kafka_store.Store, topics []string)
- func NewKafkaStoreFromTopics(t *testing.T, topics []string) *kafka_store.Store
- func PrintMessages(t *testing.T, prefix string, msgs []*confluent.Message)
- func ProduceMessages(t *testing.T, messages []*confluent.Message)
- func RandomTopicName(prefix string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertEquals ¶
Compares 2 slices of kafka messages
func AssertMessageEquals ¶
Compares 2 kafka messages
func AssertMessagesinTopic ¶
Verifies if specified messages are in the topic
func ConsumeMessages ¶
Get messages in the topic (it will return after 10s)
func CreateTopics ¶
Creates topics based on the array of nbPartitions param
func FullMessage ¶
func FullMessage(topic string, key, value interface{}, epoch int64, targetTopic string, targetKey interface{}) *confluent.Message
FullMessage creates a kafka message with more details with scheduler headers
func GetConsumerConfig ¶
func GetProducerConfig ¶
func NewKafkaStore ¶
func NewKafkaStoreFromTopics ¶
func NewKafkaStoreFromTopics(t *testing.T, topics []string) *kafka_store.Store
func RandomTopicName ¶
creates a random topic name, each test got a different topic name
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.