Documentation ¶
Index ¶
- type DBClient
- func (_m *DBClient) AddEvent(e models.Event) (string, error)
- func (_m *DBClient) AddReading(r models.Reading) (string, error)
- func (_m *DBClient) CloseSession()
- func (_m *DBClient) Connect() error
- func (_m *DBClient) DeleteEventById(id string) error
- func (_m *DBClient) DeleteReadingById(id string) error
- func (_m *DBClient) EventById(id string) (models.Event, error)
- func (_m *DBClient) EventCount() (int, error)
- func (_m *DBClient) EventCountByDeviceId(id string) (int, error)
- func (_m *DBClient) Events() ([]models.Event, error)
- func (_m *DBClient) EventsByCreationTime(startTime int64, endTime int64, limit int) ([]models.Event, error)
- func (_m *DBClient) EventsForDevice(id string) ([]models.Event, error)
- func (_m *DBClient) EventsForDeviceLimit(id string, limit int) ([]models.Event, error)
- func (_m *DBClient) EventsOlderThanAge(age int64) ([]models.Event, error)
- func (_m *DBClient) EventsPushed() ([]models.Event, error)
- func (_m *DBClient) EventsWithLimit(limit int) ([]models.Event, error)
- func (_m *DBClient) ReadingById(id string) (models.Reading, error)
- func (_m *DBClient) ReadingCount() (int, error)
- func (_m *DBClient) Readings() ([]models.Reading, error)
- func (_m *DBClient) ReadingsByCreationTime(start int64, end int64, limit int) ([]models.Reading, error)
- func (_m *DBClient) ReadingsByDevice(id string, limit int) ([]models.Reading, error)
- func (_m *DBClient) ReadingsByDeviceAndValueDescriptor(deviceId string, valueDescriptor string, limit int) ([]models.Reading, error)
- func (_m *DBClient) ReadingsByValueDescriptor(name string, limit int) ([]models.Reading, error)
- func (_m *DBClient) ScrubAllEvents() error
- func (_m *DBClient) UpdateEvent(e models.Event) error
- func (_m *DBClient) UpdateReading(r models.Reading) 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 ¶
AddReading provides a mock function with given fields: r
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) DeleteReadingById ¶
DeleteReadingById 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) EventsByCreationTime ¶
func (_m *DBClient) EventsByCreationTime(startTime int64, endTime int64, limit int) ([]models.Event, error)
EventsByCreationTime provides a mock function with given fields: startTime, endTime, limit
func (*DBClient) EventsForDevice ¶
EventsForDevice provides a mock function with given fields: id
func (*DBClient) EventsForDeviceLimit ¶
EventsForDeviceLimit provides a mock function with given fields: id, limit
func (*DBClient) EventsOlderThanAge ¶
EventsOlderThanAge provides a mock function with given fields: age
func (*DBClient) EventsPushed ¶
EventsPushed provides a mock function with given fields:
func (*DBClient) EventsWithLimit ¶
EventsWithLimit provides a mock function with given fields: limit
func (*DBClient) ReadingById ¶
ReadingById provides a mock function with given fields: id
func (*DBClient) ReadingCount ¶
ReadingCount provides a mock function with given fields:
func (*DBClient) ReadingsByCreationTime ¶
func (_m *DBClient) ReadingsByCreationTime(start int64, end int64, limit int) ([]models.Reading, error)
ReadingsByCreationTime provides a mock function with given fields: start, end, limit
func (*DBClient) ReadingsByDevice ¶
ReadingsByDevice provides a mock function with given fields: id, limit
func (*DBClient) ReadingsByDeviceAndValueDescriptor ¶
func (_m *DBClient) ReadingsByDeviceAndValueDescriptor(deviceId string, valueDescriptor string, limit int) ([]models.Reading, error)
ReadingsByDeviceAndValueDescriptor provides a mock function with given fields: deviceId, valueDescriptor, limit
func (*DBClient) ReadingsByValueDescriptor ¶
ReadingsByValueDescriptor provides a mock function with given fields: name, limit
func (*DBClient) ScrubAllEvents ¶
ScrubAllEvents provides a mock function with given fields:
func (*DBClient) UpdateEvent ¶
UpdateEvent provides a mock function with given fields: e