// PushEvent adds an event to the end of the event queue.
PushEvent adds an event to the end of the event queue.
// PushEvent adds an event to the end of the event queue .
func (event_dispatcher *EventDispatcher_struct) PushEvent( event Event_struct ) ( return_report error_report.ErrorReport_struct ){
	event_dispatcher.mutex.Lock();
	if( event_dispatcher.add_times == true ){
		event.data["submission_time"] = time.Now();
	}
	event_dispatcher.events_slice = append(event_dispatcher.events_slice, event);
	return_report = error_report.New( 0, map[string]interface{}{ "new_length": len(event_dispatcher.events_slice) }, nil );
	event_dispatcher.mutex.Unlock();
	return return_report;
}
func ( event_dispatcher * EventDispatcher_struct ) PushEvent ( event Event_struct ) ( return_report error_report . ErrorReport_struct ) { event_dispatcher . mutex . Lock ( ) ; if ( event_dispatcher . add_times == true ) { event . data [ " " ] = time . Now ( ) ; } event_dispatcher . events_slice = append ( event_dispatcher . events_slice , event ) ; return_report = error_report . New ( 0 , map [ string ] interface { } { " " : len ( event_dispatcher . events_slice ) } , nil ) ; event_dispatcher . mutex . Unlock ( ) ; return return_report ; }
PushEvent adds an event to the end of the event queue.
PushEvent adds an event to the end of the event queue .
//Variables //Parametres //Function //Return