mocks

package
v0.0.0-...-7b61fee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBClient

type DBClient struct {
	mock.Mock
}

DBClient is an autogenerated mock type for the DBClient type

func (*DBClient) AddEvent

func (_m *DBClient) AddEvent(e models.Event) (string, error)

AddEvent provides a mock function with given fields: e

func (*DBClient) CloseSession

func (_m *DBClient) CloseSession()

CloseSession provides a mock function with given fields:

func (*DBClient) Connect

func (_m *DBClient) Connect() error

Connect provides a mock function with given fields:

func (*DBClient) DeleteEventById

func (_m *DBClient) DeleteEventById(id string) error

DeleteEventById provides a mock function with given fields: id

func (*DBClient) EventById

func (_m *DBClient) EventById(id string) (models.Event, error)

EventById provides a mock function with given fields: id

func (*DBClient) EventCount

func (_m *DBClient) EventCount() (int, error)

EventCount provides a mock function with given fields:

func (*DBClient) EventCountByDeviceId

func (_m *DBClient) EventCountByDeviceId(id string) (int, error)

EventCountByDeviceId provides a mock function with given fields: id

func (*DBClient) Events

func (_m *DBClient) Events() ([]models.Event, error)

Events provides a mock function with given fields:

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

func (_m *DBClient) EventsForDevice(id string) ([]models.Event, error)

EventsForDevice provides a mock function with given fields: id

func (*DBClient) EventsForDeviceLimit

func (_m *DBClient) EventsForDeviceLimit(id string, limit int) ([]models.Event, error)

EventsForDeviceLimit provides a mock function with given fields: id, limit

func (*DBClient) EventsOlderThanAge

func (_m *DBClient) EventsOlderThanAge(age int64) ([]models.Event, error)

EventsOlderThanAge provides a mock function with given fields: age

func (*DBClient) EventsPushed

func (_m *DBClient) EventsPushed() ([]models.Event, error)

EventsPushed provides a mock function with given fields:

func (*DBClient) EventsUnpushedLimit

func (_m *DBClient) EventsUnpushedLimit(limit int) ([]models.Event, error)

EventsUnpushedLimit provides a mock function with given fields: limit ** Empty mock and no test associated due to the fact that EventsPushed already checks the pushed query

func (*DBClient) EventsWithLimit

func (_m *DBClient) EventsWithLimit(limit int) ([]models.Event, error)

EventsWithLimit provides a mock function with given fields: limit

func (*DBClient) ScrubAllEvents

func (_m *DBClient) ScrubAllEvents() error

ScrubAllEvents provides a mock function with given fields:

func (*DBClient) UpdateEvent

func (_m *DBClient) UpdateEvent(e models.Event) error

UpdateEvent provides a mock function with given fields: e

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL