summaryrefslogtreecommitdiff
path: root/interfaces
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-12-15 17:59:20 +0300
committerValery Piashchynski <[email protected]>2020-12-15 17:59:20 +0300
commit089a202aa716f3510402ff8baf47a3b9bfaefcb8 (patch)
treec0d889ab896804da239dd3e1bd16de0bdd70e379 /interfaces
parent21b51367e27f5a1b166459a115e4655d07a5d832 (diff)
Update reloader to support new container
Diffstat (limited to 'interfaces')
-rw-r--r--interfaces/resetter/interface.go14
1 files changed, 13 insertions, 1 deletions
diff --git a/interfaces/resetter/interface.go b/interfaces/resetter/interface.go
index 3fa48cf3..47d8d791 100644
--- a/interfaces/resetter/interface.go
+++ b/interfaces/resetter/interface.go
@@ -1,5 +1,17 @@
package resetter
-type Resetter interface {
+// If plugin implements Resettable interface, than it state can be resetted without reload in runtime via RPC/HTTP
+type Resettable interface {
+ // Reset reload all plugins
Reset() error
}
+
+// Resetter interface is the Resetter plugin main interface
+type Resetter interface {
+ // Reset all registered plugins
+ ResetAll() error
+ // Reset by plugin name
+ ResetByName(string) error
+ // GetAll registered plugins
+ GetAll() []string
+}