diff options
Diffstat (limited to 'pkg/pubsub/interface.go')
-rw-r--r-- | pkg/pubsub/interface.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/pubsub/interface.go b/pkg/pubsub/interface.go index 2d5d9595..eb65b4b7 100644 --- a/pkg/pubsub/interface.go +++ b/pkg/pubsub/interface.go @@ -6,7 +6,10 @@ import "github.com/spiral/roadrunner/v2/pkg/pubsub/message" This interface is in BETA. It might be changed. */ -// PubSub ... +// PubSub interface designed to implement on any storage type to provide pub-sub abilities +// Publisher used to receive messages from the PHP app via RPC +// Subscriber should be implemented to subscribe to a topics and provide a connections list per topic +// Reader return next message from the channel type PubSub interface { Publisher Subscriber |