Adding approval process
This commit is contained in:
14
pkg/registrar/internal/services/pubsub.go
Normal file
14
pkg/registrar/internal/services/pubsub.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package services
|
||||
|
||||
type Publisher interface {
|
||||
Publish(topic string, message string)
|
||||
}
|
||||
|
||||
type PubSub interface {
|
||||
Publisher
|
||||
Subscriber
|
||||
}
|
||||
|
||||
type Subscriber interface {
|
||||
Subscribe(topic string) <-chan string
|
||||
}
|
||||
Reference in New Issue
Block a user