Documentation ¶
Index ¶
- type DAO
- func (_m *DAO) Count(ctx context.Context, query *q.Query) (int64, error)
- func (_m *DAO) Create(ctx context.Context, user *models.User) (int, error)
- func (_m *DAO) Delete(ctx context.Context, userID int) error
- func (_m *DAO) List(ctx context.Context, query *q.Query) ([]*models.User, error)
- func (_m *DAO) Update(ctx context.Context, user *models.User, props ...string) 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.
Click to show internal directories.
Click to hide internal directories.