fix: issues
This commit is contained in:
14
templates/project/pkg/atom/contracts/events.go.tpl
Normal file
14
templates/project/pkg/atom/contracts/events.go.tpl
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user