Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FeatureLogToKafka ¶
func FeatureLogToKafka(kafkaName string, f FeatureLogKafkaFunc)
func Load ¶
func Load(config *recconf.RecommendConfig)
Types ¶
type FeatureLogKafkaFunc ¶
type FeatureLogKafkaFunc func(*KafkaProducer, *module.User, []*module.Item, *context.RecommendContext)
type KafkaProducer ¶
func GetKafkaProducer ¶
func GetKafkaProducer(name string) (*KafkaProducer, error)
func NewKafkaProducer ¶
func NewKafkaProducer(bootstrapServers, topic string) *KafkaProducer
func (*KafkaProducer) Close ¶
func (k *KafkaProducer) Close()
func (*KafkaProducer) Init ¶
func (k *KafkaProducer) Init() error
func (*KafkaProducer) SendMessage ¶
func (k *KafkaProducer) SendMessage(message []byte)
func (*KafkaProducer) SendMessages ¶
func (k *KafkaProducer) SendMessages(module []byte, message []byte)
Click to show internal directories.
Click to hide internal directories.