Documentation ¶
Index ¶
- type DAO
- func (_m *DAO) Count(ctx context.Context, query *q.Query) (int64, error)
- func (_m *DAO) Create(ctx context.Context, accessory *dao.Accessory) (int64, error)
- func (_m *DAO) Delete(ctx context.Context, id int64) error
- func (_m *DAO) DeleteAccessories(ctx context.Context, query *q.Query) (int64, error)
- func (_m *DAO) Get(ctx context.Context, id int64) (*dao.Accessory, error)
- func (_m *DAO) List(ctx context.Context, query *q.Query) ([]*dao.Accessory, error)
- func (_m *DAO) Update(ctx context.Context, accessory *dao.Accessory) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DAO ¶
DAO is an autogenerated mock type for the DAO type
func NewDAO ¶
NewDAO creates a new instance of DAO. 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 (*DAO) DeleteAccessories ¶
DeleteAccessories provides a mock function with given fields: ctx, query
Click to show internal directories.
Click to hide internal directories.