added backup apis and tests

This commit is contained in:
Gani Georgiev
2023-05-13 22:10:14 +03:00
parent 3b0f60fe15
commit e8b4a7eb26
104 changed files with 3192 additions and 1017 deletions
+2
View File
@@ -37,6 +37,8 @@ func (h *Hook[T]) Add(fn Handler[T]) {
}
// Reset removes all registered handlers.
//
// @todo for consistency with other Go methods consider renaming it to Clear.
func (h *Hook[T]) Reset() {
h.mux.Lock()
defer h.mux.Unlock()