diff options
author | Valery Piashchynski <[email protected]> | 2020-12-03 13:08:38 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-12-03 13:08:38 +0300 |
commit | 31e4bb7b236fe0ae59fd42d66af0d718b67a2a4b (patch) | |
tree | cd51f81b20dc32666165ff85d8b8bdad0e6c464c /interfaces | |
parent | bdabf97a6463c0e3897063235f3d556d4f75c4bd (diff) |
Initial commit of checker plugin
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 +} |