Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConnector ¶
func NewConnector(c kafka.ReaderConfig, t Translator) *connector
Types ¶
type StreamConstructor ¶
type StreamConstructor struct {
// contains filtered or unexported fields
}
func New ¶
func New(brokers []string) *StreamConstructor
func (StreamConstructor) NewConsumer ¶
func (s StreamConstructor) NewConsumer(ctx context.Context, topic string, name string, opts ...workflow.ConsumerOption) (workflow.Consumer, error)
func (StreamConstructor) NewProducer ¶
type Translator ¶
type Translator func(m kafka.Message) workflow.ConnectorEvent
Click to show internal directories.
Click to hide internal directories.