replace UUID dependency (#665)

replaced the satori/uuid package which was no longer maintained

Closes #664
This commit is contained in:
Victor Vrantchan
2020-04-23 20:00:18 -04:00
committed by GitHub
parent 45d478c4a7
commit 39230bbdfe
14 changed files with 35 additions and 43 deletions

View File

@@ -4,10 +4,11 @@ import (
"time"
"github.com/gogo/protobuf/proto"
"github.com/google/uuid"
"github.com/pkg/errors"
"github.com/micromdm/micromdm/mdm/mdm"
"github.com/micromdm/micromdm/platform/command/internal/commandproto"
"github.com/pkg/errors"
uuid "github.com/satori/go.uuid"
)
type Event struct {
@@ -20,7 +21,7 @@ type Event struct {
// NewEvent returns an Event with a unique ID and the current time.
func NewEvent(payload *mdm.CommandPayload, udid string) *Event {
event := Event{
ID: uuid.NewV4().String(),
ID: uuid.New().String(),
Time: time.Now().UTC(),
Payload: payload,
DeviceUDID: udid,