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(url string, eventMarshaler event.MarshalerFunc, options ...nats.Option) (*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(url string, eventUnmarshaler event.UnmarshalerFunc, goroutinePoolGo eventbus.GoroutinePoolGoFunc, errFunc eventbus.ErrFunc, options ...nats.Option) (*Subscriber, error)
NewSubscriber creates a subscriber.
Click to show internal directories.
Click to hide internal directories.