Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Observer ¶
type Observer struct {
// contains filtered or unexported fields
}
Observer handles events from kafka
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
Publisher implements a eventbus.Publisher interface.
func NewPublisher ¶
func NewPublisher(brokers []string, config *sarama.Config, eventMarshaler event.MarshalerFunc) (*Publisher, error)
NewPublisher creates a publisher.
type Subscriber ¶
type Subscriber struct {
// contains filtered or unexported fields
}
Subscriber implements a eventbus.Subscriber interface.
func NewSubscriber ¶
func NewSubscriber(brokers []string, config *sarama.Config, eventUnmarshaler event.UnmarshalerFunc, goroutinePoolGo eventbus.GoroutinePoolGoFunc, errFunc eventbus.ErrFunc) (*Subscriber, error)
NewSubscriber creates a subscriber.
Click to show internal directories.
Click to hide internal directories.