// HandleEvent implements Handler for Mux
HandleEvent implements Handler for Mux
// HandleEvent implements Handler for Mux
func (m *Mux) HandleEvent(e *executor.Event) (err error) {
	h, found := m.handlers[e.GetType()]
	if !found {
		h = m.defaultHandler
	}
	if h != nil {
		err = h.HandleEvent(e)
	}
	return
}
func ( m * Mux ) HandleEvent ( e * executor . Event ) ( err error ) { h , found := m . handlers [ e . GetType ( ) ] if ! found { h = m . defaultHandler } if h != nil { err = h . HandleEvent ( e ) } return }
HandleEvent implements Handler for Mux
HandleEvent implements Handler for Mux