summaryrefslogtreecommitdiff
path: root/plugins/status/interface.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-04-04 18:39:52 +0300
committerValery Piashchynski <[email protected]>2021-04-04 18:39:52 +0300
commitcc56299b877f3fbbae1e3368d98804d06564a424 (patch)
tree6b2bcd13eb32e31cef556f57869b9dcdeea4472a /plugins/status/interface.go
parentc1664e0815727e599dcb7f7a0a7a95a5be974197 (diff)
- 🔥 Support Readiness checks (via `/ready`) status plugin endpoint.
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/status/interface.go')
-rw-r--r--plugins/status/interface.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/status/interface.go b/plugins/status/interface.go
index 0a92bc52..9d5a13af 100644
--- a/plugins/status/interface.go
+++ b/plugins/status/interface.go
@@ -9,3 +9,10 @@ type Status struct {
type Checker interface {
Status() Status
}
+
+// Readiness interface used to get readiness status from the plugin
+// that means, that worker poll inside the plugin has 1+ plugins which are ready to work
+// at the particular moment
+type Readiness interface {
+ Ready() Status
+}