summaryrefslogtreecommitdiff
path: root/plugins/checker/rpc.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-12-21 19:42:23 +0300
committerValery Piashchynski <[email protected]>2020-12-21 19:42:23 +0300
commitee8b4075c0f836d698d1ae505c87c17147de447a (patch)
tree531d980e5bfb94ee39b03952a97e0445f7955409 /plugins/checker/rpc.go
parent0ad45031047bb479e06ce0a0f496c6db9b2641c9 (diff)
Move plugins to the roadrunner-plugins repository
Diffstat (limited to 'plugins/checker/rpc.go')
-rw-r--r--plugins/checker/rpc.go28
1 files changed, 0 insertions, 28 deletions
diff --git a/plugins/checker/rpc.go b/plugins/checker/rpc.go
deleted file mode 100644
index d03d1638..00000000
--- a/plugins/checker/rpc.go
+++ /dev/null
@@ -1,28 +0,0 @@
-package checker
-
-import (
- "github.com/spiral/errors"
- "github.com/spiral/roadrunner/v2/interfaces/log"
- "github.com/spiral/roadrunner/v2/interfaces/status"
-)
-
-type rpc struct {
- srv *Plugin
- log log.Logger
-}
-
-// Status return current status of the provided plugin
-func (rpc *rpc) Status(service string, status *status.Status) error {
- const op = errors.Op("status")
- rpc.log.Debug("started Status method", "service", service)
- st, err := rpc.srv.Status(service)
- if err != nil {
- return errors.E(op, err)
- }
-
- *status = st
-
- rpc.log.Debug("status code", "code", st.Code)
- rpc.log.Debug("successfully finished Status method")
- return nil
-}