summaryrefslogtreecommitdiff
path: root/plugins/informer/interface.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-12-25 00:55:15 +0300
committerValery Piashchynski <[email protected]>2020-12-25 00:55:15 +0300
commitf52156e76cf02e0b3de993fa6d9ba0d2f4e52001 (patch)
tree025c6c60930844bd10ac776e90266d679e3c1606 /plugins/informer/interface.go
parent1bc3db2ea9b95edd0101676d7bfd75df3782c3bd (diff)
Initial commit of experiment
Diffstat (limited to 'plugins/informer/interface.go')
-rw-r--r--plugins/informer/interface.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/informer/interface.go b/plugins/informer/interface.go
new file mode 100644
index 00000000..27139ae1
--- /dev/null
+++ b/plugins/informer/interface.go
@@ -0,0 +1,8 @@
+package informer
+
+import "github.com/spiral/roadrunner/v2/interfaces/worker"
+
+// Informer used to get workers from particular plugin or set of plugins
+type Informer interface {
+ Workers() []worker.BaseProcess
+}