Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { GetEndOffsets(topic string, partitions []int) ([]kafka.PartitionOffsets, error) GetPartitions(topic string) ([]int, error) CreateCompactedTopic(topic string, partition int, replicationFactor int) error Producer() *kafka.Writer Consumer(topic string, partition int, startOffset int64) *kafka.Reader CheckTopicIsCompacted(topic string) error CheckTopics(topics []string) error }
type RejectionLog ¶ added in v1.2.0
type RejectionLogSinkResponseHandler ¶ added in v1.2.0
type RejectionLogSinkResponseHandler struct { KafkaClient Client Writer *kafka.Writer Topic string Config config.Kafka }
func (*RejectionLogSinkResponseHandler) OnError ¶ added in v1.2.0
func (r *RejectionLogSinkResponseHandler) OnError(ctx *SinkResponseHandlerContext)
func (*RejectionLogSinkResponseHandler) OnInit ¶ added in v1.2.0
func (r *RejectionLogSinkResponseHandler) OnInit(ctx *SinkResponseHandlerInitContext)
func (*RejectionLogSinkResponseHandler) OnSuccess ¶ added in v1.2.0
func (r *RejectionLogSinkResponseHandler) OnSuccess(_ *SinkResponseHandlerContext)
type SinkResponseHandler ¶ added in v1.1.22
type SinkResponseHandler interface { OnSuccess(ctx *SinkResponseHandlerContext) OnError(ctx *SinkResponseHandlerContext) OnInit(ctx *SinkResponseHandlerInitContext) }
func NewRejectionLogSinkResponseHandler ¶ added in v1.2.0
func NewRejectionLogSinkResponseHandler() SinkResponseHandler
type SinkResponseHandlerContext ¶ added in v1.1.22
type SinkResponseHandlerContext struct { Message *message.KafkaMessage Err error }
type SinkResponseHandlerInitContext ¶ added in v1.2.0
Source Files
¶
Click to show internal directories.
Click to hide internal directories.