Documentation ¶
Index ¶
Constants ¶
View Source
const TopicPublishEvent = "publish_events"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Producer ¶
type Producer interface {
ProducePublishEvent(evt PublishEvent) error
}
func NewSaramaSyncProducer ¶
func NewSaramaSyncProducer(producer sarama.SyncProducer, l *zap.Logger) Producer
type PublishEvent ¶
type PublishPostEventConsumer ¶
type PublishPostEventConsumer struct {
// contains filtered or unexported fields
}
func NewPublishPostEventConsumer ¶
func NewPublishPostEventConsumer(repo repository.PostRepository, client sarama.Client, l *zap.Logger) *PublishPostEventConsumer
type SaramaSyncProducer ¶
type SaramaSyncProducer struct {
// contains filtered or unexported fields
}
func (*SaramaSyncProducer) ProducePublishEvent ¶
func (s *SaramaSyncProducer) ProducePublishEvent(evt PublishEvent) error
Click to show internal directories.
Click to hide internal directories.