Documentation ¶
Index ¶
- func AddEvent(e models.Event, ctx context.Context, dic *di.Container) (id string, err errors.EdgeX)
- func AllEvents(offset int, limit int, dic *di.Container) (events []dtos.Event, err errors.EdgeX)
- func DeleteEventById(id string, dic *di.Container) errors.EdgeX
- func DeleteEventsByDeviceName(deviceName string, dic *di.Container) errors.EdgeX
- func DeletePushedEvents(dic *di.Container) errors.EdgeX
- func EventById(id string, dic *di.Container) (dtos.Event, errors.EdgeX)
- func EventCountByDevice(deviceName string, dic *di.Container) (uint32, errors.EdgeX)
- func EventTotalCount(dic *di.Container) (uint32, errors.EdgeX)
- func EventsByDeviceName(offset int, limit int, name string, dic *di.Container) (events []dtos.Event, err errors.EdgeX)
- func EventsByTimeRange(start int, end int, offset int, limit int, dic *di.Container) (events []dtos.Event, err errors.EdgeX)
- func UpdateEventPushedById(id string, dic *di.Container) errors.EdgeX
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddEvent ¶
The AddEvent function accepts the new event model from the controller functions and invokes addEvent function in the infrastructure layer
func DeleteEventById ¶
The DeleteEventById function accepts event id from the controller functions and invokes DeleteEventById function in the infrastructure layer to remove event
func DeleteEventsByDeviceName ¶
The DeleteEventsByDeviceName function will be invoked by controller functions and then invokes DeleteEventsByDeviceName function in the infrastructure layer to remove all events/readings that are associated with the given deviceName
func DeletePushedEvents ¶
The DeletePushedEvents function will be invoked by controller functions and then invokes DeletePushedEvents function in the infrastructure layer to remove all events that have been pushed (pushed timestamp is greater than zero)
func EventCountByDevice ¶
func EventsByDeviceName ¶
func EventsByDeviceName(offset int, limit int, name string, dic *di.Container) (events []dtos.Event, err errors.EdgeX)
EventsByDeviceName query events with offset, limit and name
Types ¶
This section is empty.