expose ResetHandlers

This commit is contained in:
bentx 2017-04-08 20:09:47 +07:00
parent 86c275c69b
commit 3b3aa549db

View File

@ -274,6 +274,10 @@ func Handle(path string, handler func(Event)) {
DefaultEvtStream.Handle(path, handler) DefaultEvtStream.Handle(path, handler)
} }
func ResetHandlers() {
DefaultEvtStream.ResetHandlers()
}
func Loop() { func Loop() {
DefaultEvtStream.Loop() DefaultEvtStream.Loop()
} }