summaryrefslogtreecommitdiff
path: root/interfaces/informer/interface.go
diff options
context:
space:
mode:
Diffstat (limited to 'interfaces/informer/interface.go')
-rw-r--r--interfaces/informer/interface.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/interfaces/informer/interface.go b/interfaces/informer/interface.go
new file mode 100644
index 00000000..a8d32841
--- /dev/null
+++ b/interfaces/informer/interface.go
@@ -0,0 +1,8 @@
+package informer
+
+import "github.com/spiral/roadrunner/v2"
+
+// Informer used to get workers from particular plugin or set of plugins
+type Informer interface {
+ Workers() []roadrunner.WorkerBase
+}