func New(eventType Type, srv server.Server, bootType, script string, params map[string]interface{}) Event {
	var event Event
	event.Type = eventType
	event.Date = time.Now()
	event.Server = srv
	event.BootType = bootType
	event.Script = script
	event.Params = params
	event.setMessage()
	return event
}
New creates a new Event object
package event
import (
	"encoding/json"
	"time"
	"github.com/thousandeyes/shoelaces/internal/server"
)
type Type int
const (
	HostPoll Type = 0
	UserSelection Type = 1
	HostBoot Type = 2
	HostTimeout Type = 3
	PtrMatchBoot = "DNS Match"
	SubnetMatchBoot = "Subnet Match"
	ManualBoot = "Manual"
)
type Event struct {
	Type     Type                   `json:"eventType"`
	Date     time.Time              `json:"date"`
	Server   server.Server          `json:"server"`
	BootType string                 `json:"bootType"`
	Script   string                 `json:"script"`
	Message  string                 `json:"message"`
	Params   map[string]interface{} `json:"params"`
}
type Log struct {
	Events map[string][]Event
}