Files
sendico/api/pkg/messaging/broker/broker.go
Stephan D 62a6631b9a
All checks were successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/nats Pipeline was successful
service backend
2025-11-07 18:35:26 +01:00

13 lines
332 B
Go

package messaging
import (
me "github.com/tech/sendico/pkg/messaging/envelope"
"github.com/tech/sendico/pkg/model"
)
type Broker interface {
Publish(envelope me.Envelope) error
Subscribe(event model.NotificationEvent) (<-chan me.Envelope, error)
Unsubscribe(event model.NotificationEvent, subChan <-chan me.Envelope) error
}