Documentation ¶
Index ¶
- type GRStore
- func (_m *GRStore) ThingDeleteByID(ctx context.Context, id string) error
- func (_m *GRStore) ThingGetByID(ctx context.Context, id string) (*gorestapi.Thing, error)
- func (_m *GRStore) ThingSave(ctx context.Context, thing *gorestapi.Thing) error
- func (_m *GRStore) ThingsFind(ctx context.Context, qp *queryp.QueryParameters) ([]*gorestapi.Thing, *int64, error)
- func (_m *GRStore) WidgetDeleteByID(ctx context.Context, id string) error
- func (_m *GRStore) WidgetGetByID(ctx context.Context, id string) (*gorestapi.Widget, error)
- func (_m *GRStore) WidgetSave(ctx context.Context, thing *gorestapi.Widget) error
- func (_m *GRStore) WidgetsFind(ctx context.Context, qp *queryp.QueryParameters) ([]*gorestapi.Widget, *int64, error)
- type ThingStore
- func (_m *ThingStore) ThingDeleteByID(_a0 context.Context, _a1 string) error
- func (_m *ThingStore) ThingFind(_a0 context.Context) ([]*gorestapi.Thing, error)
- func (_m *ThingStore) ThingGetByID(_a0 context.Context, _a1 string) (*gorestapi.Thing, error)
- func (_m *ThingStore) ThingSave(_a0 context.Context, _a1 *gorestapi.Thing) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GRStore ¶
GRStore is an autogenerated mock type for the GRStore type
func NewGRStore ¶
func NewGRStore(t mockConstructorTestingTNewGRStore) *GRStore
NewGRStore creates a new instance of GRStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*GRStore) ThingDeleteByID ¶
ThingDeleteByID provides a mock function with given fields: ctx, id
func (*GRStore) ThingGetByID ¶
ThingGetByID provides a mock function with given fields: ctx, id
func (*GRStore) ThingsFind ¶
func (_m *GRStore) ThingsFind(ctx context.Context, qp *queryp.QueryParameters) ([]*gorestapi.Thing, *int64, error)
ThingsFind provides a mock function with given fields: ctx, qp
func (*GRStore) WidgetDeleteByID ¶
WidgetDeleteByID provides a mock function with given fields: ctx, id
func (*GRStore) WidgetGetByID ¶
WidgetGetByID provides a mock function with given fields: ctx, id
func (*GRStore) WidgetSave ¶
WidgetSave provides a mock function with given fields: ctx, thing
type ThingStore ¶
ThingStore is an autogenerated mock type for the ThingStore type
func (*ThingStore) ThingDeleteByID ¶
func (_m *ThingStore) ThingDeleteByID(_a0 context.Context, _a1 string) error
ThingDeleteByID provides a mock function with given fields: _a0, _a1
func (*ThingStore) ThingGetByID ¶
ThingGetByID provides a mock function with given fields: _a0, _a1