add hook start and end func

This commit is contained in:
vcaesar 2019-02-21 09:47:45 -04:00
parent 5ef1a4ee70
commit 54e8f5f3fc

View File

@ -1231,6 +1231,17 @@ func StopEvent() {
hook.StopEvent()
}
// Start start global event hook
// return event channel
func Start() chan hook.Event {
return hook.Start()
}
// End removes global event hook
func End() {
hook.End()
}
/*
____ __ ____ __ .__ __. _______ ______ ____ __ ____
\ \ / \ / / | | | \ | | | \ / __ \ \ \ / \ / /