Documentation ¶
Index ¶
- type Option
- type ToKafka
- func (tk *ToKafka) Close() error
- func (tk *ToKafka) ForceStop()
- func (tk *ToKafka) GetName() string
- func (tk *ToKafka) GetPartitionIdx() int32
- func (tk *ToKafka) Start() <-chan struct{}
- func (tk *ToKafka) Stop()
- func (tk *ToKafka) Write(_ context.Context, messages []isb.Message) ([]isb.Offset, []error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
func WithLogger ¶
func WithLogger(log *zap.SugaredLogger) Option
type ToKafka ¶
type ToKafka struct {
// contains filtered or unexported fields
}
ToKafka produce the output to a kafka sinks.
func NewToKafka ¶
func NewToKafka(vertexInstance *dfv1.VertexInstance, fromBuffer isb.BufferReader, fetchWatermark fetch.Fetcher, publishWatermark publish.Publisher, idleManager wmb.IdleManager, opts ...Option) (*ToKafka, error)
NewToKafka returns ToKafka type.
func (*ToKafka) GetPartitionIdx ¶ added in v0.9.0
GetPartitionIdx returns the partition index. for sink it is always 0.
Click to show internal directories.
Click to hide internal directories.