mocks

package
v0.0.0-...-aa487cb Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	mock.Mock
}

API is an autogenerated mock type for the API type

func NewAPI

func NewAPI(t interface {
	mock.TestingT
	Cleanup(func())
}) *API

NewAPI creates a new instance of API. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*API) GetTimeSeriesByThing

func (_m *API) GetTimeSeriesByThing(ctx context.Context, thingID string, from time.Time, to time.Time, interval int64) (*v2.ArduinoSeriesBatch, bool, error)

GetTimeSeriesByThing provides a mock function with given fields: ctx, thingID, from, to, interval

func (*API) GetTimeSeriesSampling

func (_m *API) GetTimeSeriesSampling(ctx context.Context, propertiesToImport []string, from time.Time, to time.Time, interval int32) (*v2.ArduinoSeriesBatchSampled, bool, error)

GetTimeSeriesSampling provides a mock function with given fields: ctx, propertiesToImport, from, to, interval

func (*API) PropertiesDefinition

func (_m *API) PropertiesDefinition(ctx context.Context) (map[string]v2.ArduinoPropertytype, error)

PropertiesDefinition provides a mock function with given fields: ctx

func (*API) ThingList

func (_m *API) ThingList(ctx context.Context, ids []string, device *string, props bool, tags map[string]string) ([]v2.ArduinoThing, error)

ThingList provides a mock function with given fields: ctx, ids, device, props, tags

Jump to

Keyboard shortcuts

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