fix: issues

This commit is contained in:
Rogee
2025-01-23 19:03:17 +08:00
parent ec1356210e
commit ea06d7212c
8 changed files with 381 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
package contracts
import "github.com/ThreeDotsLabs/watermill/message"
type EventHandler interface {
Topic() string
PublishToTopic() string
Handler(msg *message.Message) ([]*message.Message, error)
}
type EventPublisher interface {
Topic() string
Marshal() ([]byte, error)
}