/*
- * Copyright (C) 2017 "IoT.bzh"
+ * Copyright (C) 2017-2018 "IoT.bzh"
* Author Sebastien Douheret <sebastien@iot.bzh>
*
* Licensed under the Apache License, Version 2.0 (the "License");
"fmt"
"time"
- "github.com/iotbzh/xds-server/lib/xsapiv1"
+ "gerrit.automotivelinux.org/gerrit/src/xds/xds-server/lib/xsapiv1"
)
// EventDef Definition on one event
}
// Emit Used to manually emit an event
-func (e *Events) Emit(evName string, data interface{}, fromSid string) error {
+func (e *Events) Emit(evName string, data interface{}, fromSessID string) error {
var firstErr error
if _, ok := e.eventsMap[evName]; !ok {
}
msg := xsapiv1.EventMsg{
Time: time.Now().String(),
- FromSessionID: fromSid,
+ FromSessionID: fromSessID,
Type: evName,
Data: data,
}