publisher

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsoleSink

type ConsoleSink struct {
}

func (*ConsoleSink) Close

func (c *ConsoleSink) Close(ctx context.Context) error

func (*ConsoleSink) Sink

func (c *ConsoleSink) Sink(message *protocol.Message) error

type DummySink

type DummySink struct {
}

func (*DummySink) Close

func (d *DummySink) Close(ctx context.Context) error

func (*DummySink) Sink

func (d *DummySink) Sink(message *protocol.Message) error

type KafkaSink

type KafkaSink struct {
	// contains filtered or unexported fields
}

func NewKafkaSink

func NewKafkaSink(broker []string, topic string) *KafkaSink

func (*KafkaSink) Close

func (k *KafkaSink) Close(ctx context.Context) error

func (*KafkaSink) Sink

func (k *KafkaSink) Sink(message *protocol.Message) error

type Publisher

type Publisher struct {
	// contains filtered or unexported fields
}

func NewPublisher

func NewPublisher(kafkaSink protocol.Sink) *Publisher

func (*Publisher) Close

func (d *Publisher) Close(ctx context.Context) error

func (*Publisher) Publish

func (d *Publisher) Publish(messageProvider protocol.MessageProvider) error

type SinkFactory

type SinkFactory struct {
}

func (*SinkFactory) Create

func (d *SinkFactory) Create(config *protocol.SinkConfig) protocol.Sink

Directories

Path Synopsis
proto

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL