Documentation
¶
Index ¶
- type API
- func (_m *API) GetRawTimeSeriesByThing(ctx context.Context, thingID string, from time.Time, to time.Time) (*iot.ArduinoSeriesRawBatch, bool, error)
- func (_m *API) GetTimeSeriesByThing(ctx context.Context, thingID string, from time.Time, to time.Time, ...) (*iot.ArduinoSeriesBatch, bool, error)
- func (_m *API) GetTimeSeriesStringSampling(ctx context.Context, properties []string, from time.Time, to time.Time, ...) (*iot.ArduinoSeriesBatchSampled, bool, error)
- func (_m *API) ThingList(ctx context.Context, ids []string, device *string, props bool, ...) ([]iot.ArduinoThing, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
API is an autogenerated mock type for the API type
func NewAPI ¶
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) GetRawTimeSeriesByThing ¶
func (_m *API) GetRawTimeSeriesByThing(ctx context.Context, thingID string, from time.Time, to time.Time) (*iot.ArduinoSeriesRawBatch, bool, error)
GetRawTimeSeriesByThing provides a mock function with given fields: ctx, thingID, from, to
func (*API) GetTimeSeriesByThing ¶
func (_m *API) GetTimeSeriesByThing(ctx context.Context, thingID string, from time.Time, to time.Time, interval int64, aggregationStat string) (*iot.ArduinoSeriesBatch, bool, error)
GetTimeSeriesByThing provides a mock function with given fields: ctx, thingID, from, to, interval, aggregationStat
func (*API) GetTimeSeriesStringSampling ¶
func (_m *API) GetTimeSeriesStringSampling(ctx context.Context, properties []string, from time.Time, to time.Time, interval int32) (*iot.ArduinoSeriesBatchSampled, bool, error)
GetTimeSeriesStringSampling provides a mock function with given fields: ctx, properties, from, to, interval
Click to show internal directories.
Click to hide internal directories.