diff options
author | Valery Piashchynski <[email protected]> | 2020-12-17 10:11:56 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2020-12-17 10:11:56 +0300 |
commit | a1dc59cabb6e63eab232922f4eb5a19dbd168f44 (patch) | |
tree | a35057cd5b8d22002bbd05812a3fb604ce03b705 /interfaces/resetter/interface.go | |
parent | de3c2274d0009b63ead05ddf3d699012f1d11ada (diff) | |
parent | 1033c25b6bfc752d6059e446510f651e22cbf49b (diff) |
Merge pull request #448 from spiral/plugin/reloader
[RR2] Plugin/reload
Diffstat (limited to 'interfaces/resetter/interface.go')
-rw-r--r-- | interfaces/resetter/interface.go | 14 |
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 +} |