diff options
author | Valery Piashchynski <[email protected]> | 2020-12-21 19:42:23 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-12-21 19:42:23 +0300 |
commit | ee8b4075c0f836d698d1ae505c87c17147de447a (patch) | |
tree | 531d980e5bfb94ee39b03952a97e0445f7955409 /plugins/resetter/rpc.go | |
parent | 0ad45031047bb479e06ce0a0f496c6db9b2641c9 (diff) |
Move plugins to the roadrunner-plugins repository
Diffstat (limited to 'plugins/resetter/rpc.go')
-rw-r--r-- | plugins/resetter/rpc.go | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/plugins/resetter/rpc.go b/plugins/resetter/rpc.go deleted file mode 100644 index 344c6681..00000000 --- a/plugins/resetter/rpc.go +++ /dev/null @@ -1,30 +0,0 @@ -package resetter - -import "github.com/spiral/roadrunner/v2/interfaces/log" - -type rpc struct { - srv *Plugin - log log.Logger -} - -// List all resettable plugins. -func (rpc *rpc) List(_ bool, list *[]string) error { - rpc.log.Debug("started List method") - *list = make([]string, 0) - - for name := range rpc.srv.registry { - *list = append(*list, name) - } - rpc.log.Debug("services list", "services", *list) - - rpc.log.Debug("finished List method") - return nil -} - -// Reset named plugin. -func (rpc *rpc) Reset(service string, done *bool) error { - rpc.log.Debug("started Reset method for the service", "service", service) - defer rpc.log.Debug("finished Reset method for the service", "service", service) - *done = true - return rpc.srv.Reset(service) -} |