Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type MetricsRecorder ¶
type RejectionLogSinkResponseHandler ¶
type RejectionLogSinkResponseHandler struct {
KafkaClient Client
Writer *kafka.Writer
Topic string
Config config.Kafka
}
func (*RejectionLogSinkResponseHandler) OnError ¶
func (r *RejectionLogSinkResponseHandler) OnError(ctx *SinkResponseHandlerContext)
func (*RejectionLogSinkResponseHandler) OnInit ¶
func (r *RejectionLogSinkResponseHandler) OnInit(ctx *SinkResponseHandlerInitContext)
func (*RejectionLogSinkResponseHandler) OnSuccess ¶
func (r *RejectionLogSinkResponseHandler) OnSuccess(_ *SinkResponseHandlerContext)
type SinkResponseHandler ¶
type SinkResponseHandler interface {
OnInit(ctx *SinkResponseHandlerInitContext)
OnSuccess(ctx *SinkResponseHandlerContext)
OnError(ctx *SinkResponseHandlerContext)
}
func NewRejectionLogSinkResponseHandler ¶
func NewRejectionLogSinkResponseHandler() SinkResponseHandler
type SinkResponseHandlerContext ¶
type SinkResponseHandlerContext struct {
Message *message.KafkaMessage
Err error
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.