summaryrefslogtreecommitdiff
path: root/interfaces/resetter/interface.go
diff options
context:
space:
mode:
Diffstat (limited to 'interfaces/resetter/interface.go')
-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
+}