Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConnector ¶
func NewConnector(brokers []string, c *sarama.Config, t Translator, topic string) *connector
Types ¶
type Sender ¶
type Sender struct {
Topic string
Writer sarama.SyncProducer
WriterTimeout time.Duration
}
type StreamConstructor ¶
type StreamConstructor struct {
// contains filtered or unexported fields
}
func New ¶
func New(brokers []string, opts ...Option) *StreamConstructor
func (StreamConstructor) NewReceiver ¶
func (s StreamConstructor) NewReceiver( ctx context.Context, topic string, name string, opts ...workflow.ReceiverOption, ) (workflow.EventReceiver, error)
func (StreamConstructor) NewSender ¶
func (s StreamConstructor) NewSender(ctx context.Context, topic string) (workflow.EventSender, error)
type Translator ¶
type Translator func(m *sarama.ConsumerMessage) *workflow.ConnectorEvent
Click to show internal directories.
Click to hide internal directories.