Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoConnection - you should check connection to producer ErrNoConnection = errors.New("no connection") )
Functions ¶
This section is empty.
Types ¶
type ElasticProducer ¶
ElasticProducer - send pacakges to ElasticSearch
func NewElastic ¶
func NewElastic(elasticUrl, entityName string) (*ElasticProducer, error)
NewElastic - constructor
func (*ElasticProducer) Produce ¶
func (p *ElasticProducer) Produce(uid string, data []byte)
Produce - package indexing
type HttpProducer ¶
HttpProducer - send pacakges to external url
func (*HttpProducer) Produce ¶
func (p *HttpProducer) Produce(uid string, data []byte)
Produce - package sending
type KafkaProducer ¶
KafkaProducer - send packages to Apache Kafka
func NewKafka ¶
func NewKafka(kafkaUrl, entityName string) (*KafkaProducer, error)
NewKafka - constructor
func (*KafkaProducer) Produce ¶
func (p *KafkaProducer) Produce(uid string, data []byte)
Produce - package indexing
Click to show internal directories.
Click to hide internal directories.