message broker sifatida redis qo'shildi
This commit is contained in:
6
internal/domain/broker.go
Normal file
6
internal/domain/broker.go
Normal file
@@ -0,0 +1,6 @@
|
||||
package domain
|
||||
|
||||
type BrokerPort interface {
|
||||
Subscribe(string, func(NotificationMsg))
|
||||
// Publish()
|
||||
}
|
||||
@@ -1,10 +1,8 @@
|
||||
package domain
|
||||
|
||||
import "github.com/streadway/amqp"
|
||||
|
||||
type NotificationConsumerPort interface {
|
||||
Start()
|
||||
Handler(amqp.Delivery)
|
||||
Handler(NotificationMsg)
|
||||
}
|
||||
|
||||
type SMSServicePort interface {
|
||||
|
||||
Reference in New Issue
Block a user