diff options
Diffstat (limited to 'interfaces')
-rw-r--r-- | interfaces/informer/interface.go | 1 | ||||
-rw-r--r-- | interfaces/status/interface.go | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/interfaces/informer/interface.go b/interfaces/informer/interface.go index 42e82338..a8d32841 100644 --- a/interfaces/informer/interface.go +++ b/interfaces/informer/interface.go @@ -2,6 +2,7 @@ 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 } diff --git a/interfaces/status/interface.go b/interfaces/status/interface.go new file mode 100644 index 00000000..0a92bc52 --- /dev/null +++ b/interfaces/status/interface.go @@ -0,0 +1,11 @@ +package status + +// Status consists of status code from the service +type Status struct { + Code int +} + +// Checker interface used to get latest status from plugin +type Checker interface { + Status() Status +} |