summaryrefslogtreecommitdiff
path: root/interfaces/status
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-12-03 13:08:38 +0300
committerValery Piashchynski <[email protected]>2020-12-03 13:08:38 +0300
commit31e4bb7b236fe0ae59fd42d66af0d718b67a2a4b (patch)
treecd51f81b20dc32666165ff85d8b8bdad0e6c464c /interfaces/status
parentbdabf97a6463c0e3897063235f3d556d4f75c4bd (diff)
Initial commit of checker plugin
Diffstat (limited to 'interfaces/status')
-rw-r--r--interfaces/status/interface.go11
1 files changed, 11 insertions, 0 deletions
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
+}