Documentation ¶
Index ¶
Constants ¶
View Source
const ( // TopicShopItems all items will be sent to this topic TopicShopItems = "shop_items" // TopicShopItemsBidding will recieve only items with bidding set and greater than zero TopicShopItemsBidding = "shop_items_bidding" // KafkaAddressCtxKey context key for kafka address KafkaAddressCtxKey = "addressKafka" // MaxProducersCtxKey context key for max numbers of producers MaxProducersCtxKey = "kafkaMaxProducers" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Itemer ¶
type Itemer interface { GetContext() string GetID() string Marshal() ([]byte, error) Topics() []string }
Itemer defines interface for processed entities
type Producer ¶
type Producer struct {
// contains filtered or unexported fields
}
Producer for kafka topics
func NewKafkaProducer ¶
NewKafkaProducer returned configured kafka producer
func (*Producer) CreateProducersPool ¶
CreateProducersPool creates pool of goroutines which will handle populating items to kafka
type ProducerProvider ¶
ProducerProvider for kafka topics
Click to show internal directories.
Click to hide internal directories.