Documentation
¶
Index ¶
Constants ¶
View Source
const ( TopicMessageSent = "message-sent" TopicChatCreated = "chat-created" TopicChatUpdated = "chat-updated" )
Variables ¶
This section is empty.
Functions ¶
func NewMessageRouter ¶
func NewMessageRouter(logger watermill.LoggerAdapter, handlers EventHandlers, pubsub PubSub) (*message.Router, error)
Types ¶
type ChatCreated ¶
type ChatUpdated ¶
type EventHandlers ¶
type EventHandlers struct {
MessageSent MessageSentHandler
}
func NewEventHandlers ¶
func NewEventHandlers(ctx context.Context, logger watermill.LoggerAdapter) EventHandlers
type EventMessageSent ¶
type MessageSentHandler ¶
type MessageSentHandler struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.