Documentation ¶
Index ¶
- type TaskHttpService
- func (_m *TaskHttpService) Create(w http.ResponseWriter, r *http.Request)
- func (_m *TaskHttpService) List(w http.ResponseWriter, r *http.Request)
- func (_m *TaskHttpService) ListDone(w http.ResponseWriter, r *http.Request)
- func (_m *TaskHttpService) ListPending(w http.ResponseWriter, r *http.Request)
- func (_m *TaskHttpService) MarkDone(w http.ResponseWriter, r *http.Request)
- func (_m *TaskHttpService) MarkPending(w http.ResponseWriter, r *http.Request)
- func (_m *TaskHttpService) Update(w http.ResponseWriter, r *http.Request)
- type TaskRepo
- type TaskService
- func (_m *TaskService) Create(ctx context.Context) (*gsp.Task, error)
- func (_m *TaskService) List(ctx context.Context) ([]gsp.Task, error)
- func (_m *TaskService) ListDone(ctx context.Context) ([]gsp.Task, error)
- func (_m *TaskService) ListPending(ctx context.Context) ([]gsp.Task, error)
- func (_m *TaskService) MarkDone(ctx context.Context) error
- func (_m *TaskService) MarkPending(ctx context.Context) error
- func (_m *TaskService) Update(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TaskHttpService ¶
TaskHttpService is an autogenerated mock type for the TaskHttpService type
func NewTaskHttpService ¶
func NewTaskHttpService(t mockConstructorTestingTNewTaskHttpService) *TaskHttpService
NewTaskHttpService creates a new instance of TaskHttpService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TaskHttpService) Create ¶
func (_m *TaskHttpService) Create(w http.ResponseWriter, r *http.Request)
Create provides a mock function with given fields: w, r
func (*TaskHttpService) List ¶
func (_m *TaskHttpService) List(w http.ResponseWriter, r *http.Request)
List provides a mock function with given fields: w, r
func (*TaskHttpService) ListDone ¶
func (_m *TaskHttpService) ListDone(w http.ResponseWriter, r *http.Request)
ListDone provides a mock function with given fields: w, r
func (*TaskHttpService) ListPending ¶
func (_m *TaskHttpService) ListPending(w http.ResponseWriter, r *http.Request)
ListPending provides a mock function with given fields: w, r
func (*TaskHttpService) MarkDone ¶
func (_m *TaskHttpService) MarkDone(w http.ResponseWriter, r *http.Request)
MarkDone provides a mock function with given fields: w, r
func (*TaskHttpService) MarkPending ¶
func (_m *TaskHttpService) MarkPending(w http.ResponseWriter, r *http.Request)
MarkPending provides a mock function with given fields: w, r
func (*TaskHttpService) Update ¶
func (_m *TaskHttpService) Update(w http.ResponseWriter, r *http.Request)
Update provides a mock function with given fields: w, r
type TaskRepo ¶
TaskRepo is an autogenerated mock type for the TaskRepo type
func NewTaskRepo ¶
func NewTaskRepo(t mockConstructorTestingTNewTaskRepo) *TaskRepo
NewTaskRepo creates a new instance of TaskRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type TaskService ¶
TaskService is an autogenerated mock type for the TaskService type
func NewTaskService ¶
func NewTaskService(t mockConstructorTestingTNewTaskService) *TaskService
NewTaskService creates a new instance of TaskService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TaskService) ListPending ¶
ListPending provides a mock function with given fields: ctx
func (*TaskService) MarkDone ¶
func (_m *TaskService) MarkDone(ctx context.Context) error
MarkDone provides a mock function with given fields: ctx
func (*TaskService) MarkPending ¶
func (_m *TaskService) MarkPending(ctx context.Context) error
MarkPending provides a mock function with given fields: ctx