From 3b3aa549db63df3482b92f7f11ff2260a24ef504 Mon Sep 17 00:00:00 2001 From: bentx Date: Sat, 8 Apr 2017 20:09:47 +0700 Subject: [PATCH] expose ResetHandlers --- events.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/events.go b/events.go index a41c953..f0a45da 100644 --- a/events.go +++ b/events.go @@ -274,6 +274,10 @@ func Handle(path string, handler func(Event)) { DefaultEvtStream.Handle(path, handler) } +func ResetHandlers() { + DefaultEvtStream.ResetHandlers() +} + func Loop() { DefaultEvtStream.Loop() }