diff options
author | Valery Piashchynski <[email protected]> | 2021-02-23 19:00:44 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-02-23 19:00:44 +0300 |
commit | fdbf6a61600745b5cb1022117dcd9b06d392dc84 (patch) | |
tree | c6b7711f4dfa9873415ff0525887917cc521fd7e /plugins/checker/rpc.go | |
parent | 7dc61c309a34d21630bc1ad53c53211b3dc985de (diff) |
- Remove unneeded mutex from the `http.Workers` method.
- Rename `checker` plugin package to `status`, remove `/v1` endpoint prefix (#557)
- Add static, headers, status, gzip plugins to the `main.go`.
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/checker/rpc.go')
-rw-r--r-- | plugins/checker/rpc.go | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/plugins/checker/rpc.go b/plugins/checker/rpc.go deleted file mode 100644 index a965dcd4..00000000 --- a/plugins/checker/rpc.go +++ /dev/null @@ -1,27 +0,0 @@ -package checker - -import ( - "github.com/spiral/errors" - "github.com/spiral/roadrunner/v2/plugins/logger" -) - -type rpc struct { - srv *Plugin - log logger.Logger -} - -// Status return current status of the provided plugin -func (rpc *rpc) Status(service string, status *Status) error { - const op = errors.Op("checker_rpc_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 -} |