Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDeviceFromEventHistory ¶
func BuildDeviceFromEventHistory(deviceService domain.DeviceService, events []storage.DeviceEvent) *domain.Device
BuildDeviceFromEventHistory is used ...
Types ¶
type DeviceEventRepository ¶
type DeviceEventRepository interface {
Save(uid uuid.UUID, latestVersion int, events []interface{}) <-chan error
}
DeviceEventRepository is used ...
type DeviceReadRepository ¶
type DeviceReadRepository interface {
Save(deviceRead *storage.DeviceRead) <-chan error
}
DeviceReadRepository is used
type EventWrapper ¶
type EventWrapper struct { EventName string EventData interface{} }
EventWrapper is used to wrap the event interface with its struct name, so it will be easier to unmarshal later
Click to show internal directories.
Click to hide internal directories.