Documentation ¶
Index ¶
- type DBClient
- func (_m *DBClient) AddEvent(e models.Event) (string, error)
- func (_m *DBClient) AddReading(r go_mod_core_contractsmodels.Reading) (string, error)
- func (_m *DBClient) AddValueDescriptor(v go_mod_core_contractsmodels.ValueDescriptor) (string, error)
- func (_m *DBClient) CloseSession()
- func (_m *DBClient) DeleteEventById(id string) error
- func (_m *DBClient) DeleteEventsByDevice(deviceId string) (int, error)
- func (_m *DBClient) DeleteReadingById(id string) error
- func (_m *DBClient) DeleteReadingsByDevice(device string) error
- func (_m *DBClient) DeleteValueDescriptorById(id string) error
- func (_m *DBClient) EventById(id string) (go_mod_core_contractsmodels.Event, error)
- func (_m *DBClient) EventCount() (int, error)
- func (_m *DBClient) EventCountByDeviceId(id string) (int, error)
- func (_m *DBClient) Events() ([]go_mod_core_contractsmodels.Event, error)
- func (_m *DBClient) EventsByChecksum(checksum string) ([]go_mod_core_contractsmodels.Event, error)
- func (_m *DBClient) EventsByCreationTime(startTime int64, endTime int64, limit int) ([]go_mod_core_contractsmodels.Event, error)
- func (_m *DBClient) EventsForDevice(id string) ([]go_mod_core_contractsmodels.Event, error)
- func (_m *DBClient) EventsForDeviceLimit(id string, limit int) ([]go_mod_core_contractsmodels.Event, error)
- func (_m *DBClient) EventsOlderThanAge(age int64) ([]go_mod_core_contractsmodels.Event, error)
- func (_m *DBClient) EventsPushed() ([]go_mod_core_contractsmodels.Event, error)
- func (_m *DBClient) EventsWithLimit(limit int) ([]go_mod_core_contractsmodels.Event, error)
- func (_m *DBClient) ReadingById(id string) (go_mod_core_contractsmodels.Reading, error)
- func (_m *DBClient) ReadingCount() (int, error)
- func (_m *DBClient) Readings() ([]go_mod_core_contractsmodels.Reading, error)
- func (_m *DBClient) ReadingsByCreationTime(start int64, end int64, limit int) ([]go_mod_core_contractsmodels.Reading, error)
- func (_m *DBClient) ReadingsByDevice(id string, limit int) ([]go_mod_core_contractsmodels.Reading, error)
- func (_m *DBClient) ReadingsByDeviceAndValueDescriptor(deviceId string, valueDescriptor string, limit int) ([]go_mod_core_contractsmodels.Reading, error)
- func (_m *DBClient) ReadingsByValueDescriptor(name string, limit int) ([]go_mod_core_contractsmodels.Reading, error)
- func (_m *DBClient) ReadingsByValueDescriptorNames(names []string, limit int) ([]go_mod_core_contractsmodels.Reading, error)
- func (_m *DBClient) ScrubAllEvents() error
- func (_m *DBClient) ScrubAllValueDescriptors() error
- func (_m *DBClient) UpdateEvent(e models.Event) error
- func (_m *DBClient) UpdateReading(r go_mod_core_contractsmodels.Reading) error
- func (_m *DBClient) UpdateValueDescriptor(v go_mod_core_contractsmodels.ValueDescriptor) error
- func (_m *DBClient) ValueDescriptorById(id string) (go_mod_core_contractsmodels.ValueDescriptor, error)
- func (_m *DBClient) ValueDescriptorByName(name string) (go_mod_core_contractsmodels.ValueDescriptor, error)
- func (_m *DBClient) ValueDescriptors() ([]go_mod_core_contractsmodels.ValueDescriptor, error)
- func (_m *DBClient) ValueDescriptorsByLabel(label string) ([]go_mod_core_contractsmodels.ValueDescriptor, error)
- func (_m *DBClient) ValueDescriptorsByName(names []string) ([]go_mod_core_contractsmodels.ValueDescriptor, error)
- func (_m *DBClient) ValueDescriptorsByType(t string) ([]go_mod_core_contractsmodels.ValueDescriptor, error)
- func (_m *DBClient) ValueDescriptorsByUomLabel(uomLabel string) ([]go_mod_core_contractsmodels.ValueDescriptor, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBClient ¶
DBClient is an autogenerated mock type for the DBClient type
func (*DBClient) AddReading ¶
func (_m *DBClient) AddReading(r go_mod_core_contractsmodels.Reading) (string, error)
AddReading provides a mock function with given fields: r
func (*DBClient) AddValueDescriptor ¶
func (_m *DBClient) AddValueDescriptor(v go_mod_core_contractsmodels.ValueDescriptor) (string, error)
AddValueDescriptor provides a mock function with given fields: v
func (*DBClient) CloseSession ¶
func (_m *DBClient) CloseSession()
CloseSession provides a mock function with given fields:
func (*DBClient) DeleteEventById ¶
DeleteEventById provides a mock function with given fields: id
func (*DBClient) DeleteEventsByDevice ¶
DeleteEventsByDevice provides a mock function with given fields: deviceId
func (*DBClient) DeleteReadingById ¶
DeleteReadingById provides a mock function with given fields: id
func (*DBClient) DeleteReadingsByDevice ¶
DeleteReadingsByDevice provides a mock function with given fields: device
func (*DBClient) DeleteValueDescriptorById ¶
DeleteValueDescriptorById provides a mock function with given fields: id
func (*DBClient) EventById ¶
func (_m *DBClient) EventById(id string) (go_mod_core_contractsmodels.Event, error)
EventById provides a mock function with given fields: id
func (*DBClient) EventCount ¶
EventCount provides a mock function with given fields:
func (*DBClient) EventCountByDeviceId ¶
EventCountByDeviceId provides a mock function with given fields: id
func (*DBClient) Events ¶
func (_m *DBClient) Events() ([]go_mod_core_contractsmodels.Event, error)
Events provides a mock function with given fields:
func (*DBClient) EventsByChecksum ¶
func (_m *DBClient) EventsByChecksum(checksum string) ([]go_mod_core_contractsmodels.Event, error)
EventsByChecksum provides a mock function with given fields: checksum
func (*DBClient) EventsByCreationTime ¶
func (_m *DBClient) EventsByCreationTime(startTime int64, endTime int64, limit int) ([]go_mod_core_contractsmodels.Event, error)
EventsByCreationTime provides a mock function with given fields: startTime, endTime, limit
func (*DBClient) EventsForDevice ¶
func (_m *DBClient) EventsForDevice(id string) ([]go_mod_core_contractsmodels.Event, error)
EventsForDevice provides a mock function with given fields: id
func (*DBClient) EventsForDeviceLimit ¶
func (_m *DBClient) EventsForDeviceLimit(id string, limit int) ([]go_mod_core_contractsmodels.Event, error)
EventsForDeviceLimit provides a mock function with given fields: id, limit
func (*DBClient) EventsOlderThanAge ¶
func (_m *DBClient) EventsOlderThanAge(age int64) ([]go_mod_core_contractsmodels.Event, error)
EventsOlderThanAge provides a mock function with given fields: age
func (*DBClient) EventsPushed ¶
func (_m *DBClient) EventsPushed() ([]go_mod_core_contractsmodels.Event, error)
EventsPushed provides a mock function with given fields:
func (*DBClient) EventsWithLimit ¶
func (_m *DBClient) EventsWithLimit(limit int) ([]go_mod_core_contractsmodels.Event, error)
EventsWithLimit provides a mock function with given fields: limit
func (*DBClient) ReadingById ¶
func (_m *DBClient) ReadingById(id string) (go_mod_core_contractsmodels.Reading, error)
ReadingById provides a mock function with given fields: id
func (*DBClient) ReadingCount ¶
ReadingCount provides a mock function with given fields:
func (*DBClient) Readings ¶
func (_m *DBClient) Readings() ([]go_mod_core_contractsmodels.Reading, error)
Readings provides a mock function with given fields:
func (*DBClient) ReadingsByCreationTime ¶
func (_m *DBClient) ReadingsByCreationTime(start int64, end int64, limit int) ([]go_mod_core_contractsmodels.Reading, error)
ReadingsByCreationTime provides a mock function with given fields: start, end, limit
func (*DBClient) ReadingsByDevice ¶
func (_m *DBClient) ReadingsByDevice(id string, limit int) ([]go_mod_core_contractsmodels.Reading, error)
ReadingsByDevice provides a mock function with given fields: id, limit
func (*DBClient) ReadingsByDeviceAndValueDescriptor ¶
func (_m *DBClient) ReadingsByDeviceAndValueDescriptor(deviceId string, valueDescriptor string, limit int) ([]go_mod_core_contractsmodels.Reading, error)
ReadingsByDeviceAndValueDescriptor provides a mock function with given fields: deviceId, valueDescriptor, limit
func (*DBClient) ReadingsByValueDescriptor ¶
func (_m *DBClient) ReadingsByValueDescriptor(name string, limit int) ([]go_mod_core_contractsmodels.Reading, error)
ReadingsByValueDescriptor provides a mock function with given fields: name, limit
func (*DBClient) ReadingsByValueDescriptorNames ¶
func (_m *DBClient) ReadingsByValueDescriptorNames(names []string, limit int) ([]go_mod_core_contractsmodels.Reading, error)
ReadingsByValueDescriptorNames provides a mock function with given fields: names, limit
func (*DBClient) ScrubAllEvents ¶
ScrubAllEvents provides a mock function with given fields:
func (*DBClient) ScrubAllValueDescriptors ¶
ScrubAllValueDescriptors provides a mock function with given fields:
func (*DBClient) UpdateEvent ¶
UpdateEvent provides a mock function with given fields: e
func (*DBClient) UpdateReading ¶
func (_m *DBClient) UpdateReading(r go_mod_core_contractsmodels.Reading) error
UpdateReading provides a mock function with given fields: r
func (*DBClient) UpdateValueDescriptor ¶
func (_m *DBClient) UpdateValueDescriptor(v go_mod_core_contractsmodels.ValueDescriptor) error
UpdateValueDescriptor provides a mock function with given fields: v
func (*DBClient) ValueDescriptorById ¶
func (_m *DBClient) ValueDescriptorById(id string) (go_mod_core_contractsmodels.ValueDescriptor, error)
ValueDescriptorById provides a mock function with given fields: id
func (*DBClient) ValueDescriptorByName ¶
func (_m *DBClient) ValueDescriptorByName(name string) (go_mod_core_contractsmodels.ValueDescriptor, error)
ValueDescriptorByName provides a mock function with given fields: name
func (*DBClient) ValueDescriptors ¶
func (_m *DBClient) ValueDescriptors() ([]go_mod_core_contractsmodels.ValueDescriptor, error)
ValueDescriptors provides a mock function with given fields:
func (*DBClient) ValueDescriptorsByLabel ¶
func (_m *DBClient) ValueDescriptorsByLabel(label string) ([]go_mod_core_contractsmodels.ValueDescriptor, error)
ValueDescriptorsByLabel provides a mock function with given fields: label
func (*DBClient) ValueDescriptorsByName ¶
func (_m *DBClient) ValueDescriptorsByName(names []string) ([]go_mod_core_contractsmodels.ValueDescriptor, error)
ValueDescriptorsByName provides a mock function with given fields: names
func (*DBClient) ValueDescriptorsByType ¶
func (_m *DBClient) ValueDescriptorsByType(t string) ([]go_mod_core_contractsmodels.ValueDescriptor, error)
ValueDescriptorsByType provides a mock function with given fields: t
func (*DBClient) ValueDescriptorsByUomLabel ¶
func (_m *DBClient) ValueDescriptorsByUomLabel(uomLabel string) ([]go_mod_core_contractsmodels.ValueDescriptor, error)
ValueDescriptorsByUomLabel provides a mock function with given fields: uomLabel