Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPublisherClosed = errors.New("publisher is closed")
Functions ¶
This section is empty.
Types ¶
type MongoDatabase ¶
type MongoDatabase struct {
// contains filtered or unexported fields
}
func NewMongoDatabase ¶
func NewMongoDatabase( db *mongo.Database, config MongoDatabaseConfig, logger watermill.LoggerAdapter, ) (*MongoDatabase, error)
func (*MongoDatabase) InsertMessages ¶
type MongoDatabaseConfig ¶
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
func NewPublisher ¶
func NewPublisher(db Database, logger watermill.LoggerAdapter) (*Publisher, error)
type Subscriber ¶
type Subscriber struct {
// contains filtered or unexported fields
}
func NewSubscriber ¶
func NewSubscriber(db *mongo.Database, consumerGroup string, logger watermill.LoggerAdapter) (*Subscriber, error)
func (*Subscriber) Close ¶
func (s *Subscriber) Close() error
Click to show internal directories.
Click to hide internal directories.