func NewEventProject(data models.Project) {
	log.Debug("New event Project !")
	EventQueue <- Event{Type: EventProject, Timestamp: time.Now(), Data: data}
}
NewEventProject send new pre-filled event of the Project type
package events
import (
	"github.com/netm4ul/netm4ul/core/database/models"
	log "github.com/sirupsen/logrus"
	"time"
)
type EventType int
func (ev EventType) String() string {
	switch ev {
	case EventProject:
		return "Event Project"
	case EventIP:
		return "Event IP"
	case EventDomain:
		return "Event Domain"
	case EventPort:
		return "Event Port"
	case EventURI:
		return "Event URI"
	default:
		return "Unknown event"
	}
}
type Event struct {
	Type      EventType
	Data      interface{}
	Timestamp time.Time
}
const (
	EventIP EventType = iota
	EventDomain
	EventPort
	EventURI
	EventProject
)
var (
	EventQueue chan Event
)
func init() {
	EventQueue = make(chan Event)
}