Documentation ¶
Index ¶
- type API
- func (_m *API) GetTimeSeriesByThing(ctx context.Context, thingID string, from time.Time, to time.Time, ...) (*v2.ArduinoSeriesBatch, bool, error)
- func (_m *API) GetTimeSeriesSampling(ctx context.Context, propertiesToImport []string, from time.Time, to time.Time, ...) (*v2.ArduinoSeriesBatchSampled, bool, error)
- func (_m *API) PropertiesDefinition(ctx context.Context) (map[string]v2.ArduinoPropertytype, error)
- func (_m *API) ThingList(ctx context.Context, ids []string, device *string, props bool, ...) ([]v2.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) 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 ¶
PropertiesDefinition provides a mock function with given fields: ctx
Click to show internal directories.
Click to hide internal directories.