diff options
author | Valery Piashchynski <[email protected]> | 2021-04-30 13:09:18 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-04-30 13:09:18 +0300 |
commit | d0dccb0c761df45da7fba00340f1cd5c66c71711 (patch) | |
tree | 8b1bc547a843dd9601faee26cf1c92876cfbb054 /plugins/status/plugin.go | |
parent | 50aa751dcefc0ab0e96594a5f111ead316a34a70 (diff) |
- Add Availabler interface implementaion for all plugins
- Add tests
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/status/plugin.go')
-rw-r--r-- | plugins/status/plugin.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/status/plugin.go b/plugins/status/plugin.go index dc4e506d..3553bb01 100644 --- a/plugins/status/plugin.go +++ b/plugins/status/plugin.go @@ -127,7 +127,12 @@ func (c *Plugin) Name() string { return PluginName } -// RPCService returns associated rpc service. +// Available interface implementation +func (c *Plugin) Available() bool { + return true +} + +// RPC returns associated rpc service. func (c *Plugin) RPC() interface{} { return &rpc{srv: c, log: c.log} } |