Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EventSchema = &avro.Schema{
Definition: event,
}
EventSchema provides the avro schema object for an error event.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { FilterID string `avro:"filter_id"` EventType string `avro:"event_type"` EventMsg string `avro:"event_message"` ServiceName string `avro:"service_name"` }
Event to contain details of something that happened in the filter / export process.
type KafkaHandler ¶
type KafkaHandler struct {
// contains filtered or unexported fields
}
KafkaHandler provides an error handler that writes to the kafka error topic
func NewKafkaHandler ¶
func NewKafkaHandler(messageProducer chan []byte) *KafkaHandler
NewKafkaHandler returns a new KafkaHandler that sends error messages
Click to show internal directories.
Click to hide internal directories.