Documentation ¶
Index ¶
- type AccountExtService
- type AccountService
- type ContextPersistenceService
- func (_m *ContextPersistenceService) Clean() error
- func (_m *ContextPersistenceService) Create(name string) (*models.Context, error)
- func (_m *ContextPersistenceService) Delete(name string) error
- func (_m *ContextPersistenceService) Find(name string) (*models.Context, error)
- func (_m *ContextPersistenceService) FindByID(id int64) (*models.Context, error)
- func (_m *ContextPersistenceService) ListAll() ([]*models.Context, error)
- func (_m *ContextPersistenceService) PartialSync(lastEditTime *int32) error
- func (_m *ContextPersistenceService) Rename(name string, newName string) (*models.Context, error)
- func (_m *ContextPersistenceService) Sync() error
- type ContextService
- func (_m *ContextService) Create(name string) (*models.Context, error)
- func (_m *ContextService) Delete(name string) error
- func (_m *ContextService) Find(name string) (*models.Context, error)
- func (_m *ContextService) FindByID(id int64) (*models.Context, error)
- func (_m *ContextService) ListAll() ([]*models.Context, error)
- func (_m *ContextService) Rename(name string, newName string) (*models.Context, error)
- type FolderPersistenceService
- func (_m *FolderPersistenceService) Archive(id int, isArchived bool) (*models.Folder, error)
- func (_m *FolderPersistenceService) Clean() error
- func (_m *FolderPersistenceService) Create(name string) (*models.Folder, error)
- func (_m *FolderPersistenceService) Delete(name string) error
- func (_m *FolderPersistenceService) Find(name string) (*models.Folder, error)
- func (_m *FolderPersistenceService) FindByID(id int64) (*models.Folder, error)
- func (_m *FolderPersistenceService) ListAll() ([]*models.Folder, error)
- func (_m *FolderPersistenceService) PartialSync(lastEditTime *int32) error
- func (_m *FolderPersistenceService) Rename(name string, newName string) (*models.Folder, error)
- func (_m *FolderPersistenceService) Sync() error
- type FolderService
- func (_m *FolderService) Archive(id int, isArchived bool) (*models.Folder, error)
- func (_m *FolderService) Create(name string) (*models.Folder, error)
- func (_m *FolderService) Delete(name string) error
- func (_m *FolderService) Find(name string) (*models.Folder, error)
- func (_m *FolderService) FindByID(id int64) (*models.Folder, error)
- func (_m *FolderService) ListAll() ([]*models.Folder, error)
- func (_m *FolderService) Rename(name string, newName string) (*models.Folder, error)
- type GoalPersistenceService
- func (_m *GoalPersistenceService) Archive(id int, isArchived bool) (*models.Goal, error)
- func (_m *GoalPersistenceService) Clean() error
- func (_m *GoalPersistenceService) Create(name string) (*models.Goal, error)
- func (_m *GoalPersistenceService) Delete(name string) error
- func (_m *GoalPersistenceService) Find(name string) (*models.Goal, error)
- func (_m *GoalPersistenceService) FindByID(id int64) (*models.Goal, error)
- func (_m *GoalPersistenceService) ListAll() ([]*models.Goal, error)
- func (_m *GoalPersistenceService) ListAllWithArchived() ([]*models.Goal, error)
- func (_m *GoalPersistenceService) PartialSync(lastEditTime *int32) error
- func (_m *GoalPersistenceService) Rename(name string, newName string) (*models.Goal, error)
- func (_m *GoalPersistenceService) Sync() error
- type GoalService
- func (_m *GoalService) Archive(id int, isArchived bool) (*models.Goal, error)
- func (_m *GoalService) Create(name string) (*models.Goal, error)
- func (_m *GoalService) Delete(name string) error
- func (_m *GoalService) Find(name string) (*models.Goal, error)
- func (_m *GoalService) FindByID(id int64) (*models.Goal, error)
- func (_m *GoalService) ListAll() ([]*models.Goal, error)
- func (_m *GoalService) ListAllWithArchived() ([]*models.Goal, error)
- func (_m *GoalService) Rename(name string, newName string) (*models.Goal, error)
- type SavedSearchService
- type SettingService
- type Synchronizable
- type TaskExtendedService
- func (_m *TaskExtendedService) Complete(id int64) (*models.Task, error)
- func (_m *TaskExtendedService) Create(title string) (*models.Task, error)
- func (_m *TaskExtendedService) CreateByQuery(query *queries.TaskCreateQuery) (*models.Task, error)
- func (_m *TaskExtendedService) Delete(id int64) error
- func (_m *TaskExtendedService) DeleteBatch(ids []int64) ([]int64, []*models.TaskDeleteItem, error)
- func (_m *TaskExtendedService) Edit(id int64, t *models.TaskEdit) (*models.Task, error)
- func (_m *TaskExtendedService) EditByQuery(query *queries.TaskEditQuery) (*models.Task, error)
- func (_m *TaskExtendedService) FindByID(id int64) (*models.Task, error)
- func (_m *TaskExtendedService) List(start int64, limit int64) ([]*models.Task, *models.PaginatedInfo, error)
- func (_m *TaskExtendedService) ListAll() ([]*models.Task, int, error)
- func (_m *TaskExtendedService) ListAllByQuery(query *queries.TaskListQuery) ([]*models.Task, error)
- func (_m *TaskExtendedService) ListDeleted(lastEditTime *int32) ([]*models.TaskDeleted, error)
- func (_m *TaskExtendedService) ListWithChanged(lastEditTime *int32, start int64, limit int64) ([]*models.Task, *models.PaginatedInfo, error)
- func (_m *TaskExtendedService) Start(id int64) error
- func (_m *TaskExtendedService) Stop(id int64) error
- func (_m *TaskExtendedService) UnComplete(id int64) (*models.Task, error)
- type TaskPersistenceExtService
- func (_m *TaskPersistenceExtService) Clean() error
- func (_m *TaskPersistenceExtService) Complete(id int64) (*models.Task, error)
- func (_m *TaskPersistenceExtService) Create(title string) (*models.Task, error)
- func (_m *TaskPersistenceExtService) CreateByQuery(query *queries.TaskCreateQuery) (*models.Task, error)
- func (_m *TaskPersistenceExtService) Delete(id int64) error
- func (_m *TaskPersistenceExtService) DeleteBatch(ids []int64) ([]int64, []*models.TaskDeleteItem, error)
- func (_m *TaskPersistenceExtService) Edit(id int64, t *models.TaskEdit) (*models.Task, error)
- func (_m *TaskPersistenceExtService) EditByQuery(query *queries.TaskEditQuery) (*models.Task, error)
- func (_m *TaskPersistenceExtService) FindByID(id int64) (*models.Task, error)
- func (_m *TaskPersistenceExtService) List(start int64, limit int64) ([]*models.Task, *models.PaginatedInfo, error)
- func (_m *TaskPersistenceExtService) ListAll() ([]*models.Task, int, error)
- func (_m *TaskPersistenceExtService) ListAllByQuery(query *queries.TaskListQuery) ([]*models.Task, error)
- func (_m *TaskPersistenceExtService) ListDeleted(lastEditTime *int32) ([]*models.TaskDeleted, error)
- func (_m *TaskPersistenceExtService) ListWithChanged(lastEditTime *int32, start int64, limit int64) ([]*models.Task, *models.PaginatedInfo, error)
- func (_m *TaskPersistenceExtService) PartialSync(lastEditTime *int32) error
- func (_m *TaskPersistenceExtService) Start(id int64) error
- func (_m *TaskPersistenceExtService) Stop(id int64) error
- func (_m *TaskPersistenceExtService) Sync() error
- func (_m *TaskPersistenceExtService) UnComplete(id int64) (*models.Task, error)
- type TaskRichService
- type TaskService
- func (_m *TaskService) Complete(id int64) (*models.Task, error)
- func (_m *TaskService) Create(title string) (*models.Task, error)
- func (_m *TaskService) CreateByQuery(query *queries.TaskCreateQuery) (*models.Task, error)
- func (_m *TaskService) Delete(id int64) error
- func (_m *TaskService) DeleteBatch(ids []int64) ([]int64, []*models.TaskDeleteItem, error)
- func (_m *TaskService) Edit(id int64, t *models.TaskEdit) (*models.Task, error)
- func (_m *TaskService) EditByQuery(query *queries.TaskEditQuery) (*models.Task, error)
- func (_m *TaskService) FindByID(id int64) (*models.Task, error)
- func (_m *TaskService) List(start int64, limit int64) ([]*models.Task, *models.PaginatedInfo, error)
- func (_m *TaskService) ListAll() ([]*models.Task, int, error)
- func (_m *TaskService) ListDeleted(lastEditTime *int32) ([]*models.TaskDeleted, error)
- func (_m *TaskService) ListWithChanged(lastEditTime *int32, start int64, limit int64) ([]*models.Task, *models.PaginatedInfo, error)
- func (_m *TaskService) Start(id int64) error
- func (_m *TaskService) Stop(id int64) error
- func (_m *TaskService) UnComplete(id int64) (*models.Task, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountExtService ¶
AccountExtService is an autogenerated mock type for the AccountExtService type
func NewAccountExtService ¶
func NewAccountExtService(t interface { mock.TestingT Cleanup(func()) }) *AccountExtService
NewAccountExtService creates a new instance of AccountExtService. 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 (*AccountExtService) CachedMe ¶
func (_m *AccountExtService) CachedMe() (*models.Account, bool, error)
CachedMe provides a mock function with given fields:
func (*AccountExtService) FindLastFetchInfo ¶
func (_m *AccountExtService) FindLastFetchInfo() (*models.Account, error)
FindLastFetchInfo provides a mock function with given fields:
func (*AccountExtService) Me ¶
func (_m *AccountExtService) Me() (*models.Account, error)
Me provides a mock function with given fields:
func (*AccountExtService) ModifyLastFetchInfo ¶
func (_m *AccountExtService) ModifyLastFetchInfo(account *models.Account) error
ModifyLastFetchInfo provides a mock function with given fields: account
type AccountService ¶
AccountService is an autogenerated mock type for the AccountService type
func NewAccountService ¶
func NewAccountService(t interface { mock.TestingT Cleanup(func()) }) *AccountService
NewAccountService creates a new instance of AccountService. 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.
type ContextPersistenceService ¶
ContextPersistenceService is an autogenerated mock type for the ContextPersistenceService type
func NewContextPersistenceService ¶
func NewContextPersistenceService(t interface { mock.TestingT Cleanup(func()) }) *ContextPersistenceService
NewContextPersistenceService creates a new instance of ContextPersistenceService. 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 (*ContextPersistenceService) Clean ¶
func (_m *ContextPersistenceService) Clean() error
Clean provides a mock function with given fields:
func (*ContextPersistenceService) Create ¶
func (_m *ContextPersistenceService) Create(name string) (*models.Context, error)
Create provides a mock function with given fields: name
func (*ContextPersistenceService) Delete ¶
func (_m *ContextPersistenceService) Delete(name string) error
Delete provides a mock function with given fields: name
func (*ContextPersistenceService) Find ¶
func (_m *ContextPersistenceService) Find(name string) (*models.Context, error)
Find provides a mock function with given fields: name
func (*ContextPersistenceService) FindByID ¶
func (_m *ContextPersistenceService) FindByID(id int64) (*models.Context, error)
FindByID provides a mock function with given fields: id
func (*ContextPersistenceService) ListAll ¶
func (_m *ContextPersistenceService) ListAll() ([]*models.Context, error)
ListAll provides a mock function with given fields:
func (*ContextPersistenceService) PartialSync ¶
func (_m *ContextPersistenceService) PartialSync(lastEditTime *int32) error
PartialSync provides a mock function with given fields: lastEditTime
func (*ContextPersistenceService) Rename ¶
Rename provides a mock function with given fields: name, newName
func (*ContextPersistenceService) Sync ¶
func (_m *ContextPersistenceService) Sync() error
Sync provides a mock function with given fields:
type ContextService ¶
ContextService is an autogenerated mock type for the ContextService type
func NewContextService ¶
func NewContextService(t interface { mock.TestingT Cleanup(func()) }) *ContextService
NewContextService creates a new instance of ContextService. 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 (*ContextService) Create ¶
func (_m *ContextService) Create(name string) (*models.Context, error)
Create provides a mock function with given fields: name
func (*ContextService) Delete ¶
func (_m *ContextService) Delete(name string) error
Delete provides a mock function with given fields: name
func (*ContextService) Find ¶
func (_m *ContextService) Find(name string) (*models.Context, error)
Find provides a mock function with given fields: name
func (*ContextService) FindByID ¶
func (_m *ContextService) FindByID(id int64) (*models.Context, error)
FindByID provides a mock function with given fields: id
type FolderPersistenceService ¶
FolderPersistenceService is an autogenerated mock type for the FolderPersistenceService type
func NewFolderPersistenceService ¶
func NewFolderPersistenceService(t interface { mock.TestingT Cleanup(func()) }) *FolderPersistenceService
NewFolderPersistenceService creates a new instance of FolderPersistenceService. 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 (*FolderPersistenceService) Archive ¶
Archive provides a mock function with given fields: id, isArchived
func (*FolderPersistenceService) Clean ¶
func (_m *FolderPersistenceService) Clean() error
Clean provides a mock function with given fields:
func (*FolderPersistenceService) Create ¶
func (_m *FolderPersistenceService) Create(name string) (*models.Folder, error)
Create provides a mock function with given fields: name
func (*FolderPersistenceService) Delete ¶
func (_m *FolderPersistenceService) Delete(name string) error
Delete provides a mock function with given fields: name
func (*FolderPersistenceService) Find ¶
func (_m *FolderPersistenceService) Find(name string) (*models.Folder, error)
Find provides a mock function with given fields: name
func (*FolderPersistenceService) FindByID ¶
func (_m *FolderPersistenceService) FindByID(id int64) (*models.Folder, error)
FindByID provides a mock function with given fields: id
func (*FolderPersistenceService) ListAll ¶
func (_m *FolderPersistenceService) ListAll() ([]*models.Folder, error)
ListAll provides a mock function with given fields:
func (*FolderPersistenceService) PartialSync ¶
func (_m *FolderPersistenceService) PartialSync(lastEditTime *int32) error
PartialSync provides a mock function with given fields: lastEditTime
func (*FolderPersistenceService) Rename ¶
Rename provides a mock function with given fields: name, newName
func (*FolderPersistenceService) Sync ¶
func (_m *FolderPersistenceService) Sync() error
Sync provides a mock function with given fields:
type FolderService ¶
FolderService is an autogenerated mock type for the FolderService type
func NewFolderService ¶
func NewFolderService(t interface { mock.TestingT Cleanup(func()) }) *FolderService
NewFolderService creates a new instance of FolderService. 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 (*FolderService) Create ¶
func (_m *FolderService) Create(name string) (*models.Folder, error)
Create provides a mock function with given fields: name
func (*FolderService) Delete ¶
func (_m *FolderService) Delete(name string) error
Delete provides a mock function with given fields: name
func (*FolderService) Find ¶
func (_m *FolderService) Find(name string) (*models.Folder, error)
Find provides a mock function with given fields: name
func (*FolderService) FindByID ¶
func (_m *FolderService) FindByID(id int64) (*models.Folder, error)
FindByID provides a mock function with given fields: id
type GoalPersistenceService ¶
GoalPersistenceService is an autogenerated mock type for the GoalPersistenceService type
func NewGoalPersistenceService ¶
func NewGoalPersistenceService(t interface { mock.TestingT Cleanup(func()) }) *GoalPersistenceService
NewGoalPersistenceService creates a new instance of GoalPersistenceService. 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 (*GoalPersistenceService) Archive ¶
Archive provides a mock function with given fields: id, isArchived
func (*GoalPersistenceService) Clean ¶
func (_m *GoalPersistenceService) Clean() error
Clean provides a mock function with given fields:
func (*GoalPersistenceService) Create ¶
func (_m *GoalPersistenceService) Create(name string) (*models.Goal, error)
Create provides a mock function with given fields: name
func (*GoalPersistenceService) Delete ¶
func (_m *GoalPersistenceService) Delete(name string) error
Delete provides a mock function with given fields: name
func (*GoalPersistenceService) Find ¶
func (_m *GoalPersistenceService) Find(name string) (*models.Goal, error)
Find provides a mock function with given fields: name
func (*GoalPersistenceService) FindByID ¶
func (_m *GoalPersistenceService) FindByID(id int64) (*models.Goal, error)
FindByID provides a mock function with given fields: id
func (*GoalPersistenceService) ListAll ¶
func (_m *GoalPersistenceService) ListAll() ([]*models.Goal, error)
ListAll provides a mock function with given fields:
func (*GoalPersistenceService) ListAllWithArchived ¶
func (_m *GoalPersistenceService) ListAllWithArchived() ([]*models.Goal, error)
ListAllWithArchived provides a mock function with given fields:
func (*GoalPersistenceService) PartialSync ¶
func (_m *GoalPersistenceService) PartialSync(lastEditTime *int32) error
PartialSync provides a mock function with given fields: lastEditTime
func (*GoalPersistenceService) Rename ¶
Rename provides a mock function with given fields: name, newName
func (*GoalPersistenceService) Sync ¶
func (_m *GoalPersistenceService) Sync() error
Sync provides a mock function with given fields:
type GoalService ¶
GoalService is an autogenerated mock type for the GoalService type
func NewGoalService ¶
func NewGoalService(t interface { mock.TestingT Cleanup(func()) }) *GoalService
NewGoalService creates a new instance of GoalService. 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 (*GoalService) Create ¶
func (_m *GoalService) Create(name string) (*models.Goal, error)
Create provides a mock function with given fields: name
func (*GoalService) Delete ¶
func (_m *GoalService) Delete(name string) error
Delete provides a mock function with given fields: name
func (*GoalService) Find ¶
func (_m *GoalService) Find(name string) (*models.Goal, error)
Find provides a mock function with given fields: name
func (*GoalService) FindByID ¶
func (_m *GoalService) FindByID(id int64) (*models.Goal, error)
FindByID provides a mock function with given fields: id
func (*GoalService) ListAll ¶
func (_m *GoalService) ListAll() ([]*models.Goal, error)
ListAll provides a mock function with given fields:
func (*GoalService) ListAllWithArchived ¶
func (_m *GoalService) ListAllWithArchived() ([]*models.Goal, error)
ListAllWithArchived provides a mock function with given fields:
type SavedSearchService ¶
SavedSearchService is an autogenerated mock type for the SavedSearchService type
func NewSavedSearchService ¶
func NewSavedSearchService(t interface { mock.TestingT Cleanup(func()) }) *SavedSearchService
NewSavedSearchService creates a new instance of SavedSearchService. 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 (*SavedSearchService) ListAll ¶
func (_m *SavedSearchService) ListAll() ([]*models.SavedSearch, error)
ListAll provides a mock function with given fields:
type SettingService ¶
SettingService is an autogenerated mock type for the SettingService type
func NewSettingService ¶
func NewSettingService(t interface { mock.TestingT Cleanup(func()) }) *SettingService
NewSettingService creates a new instance of SettingService. 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 (*SettingService) Delete ¶
func (_m *SettingService) Delete(name string) error
Delete provides a mock function with given fields: name
type Synchronizable ¶
Synchronizable is an autogenerated mock type for the Synchronizable type
func NewSynchronizable ¶
func NewSynchronizable(t interface { mock.TestingT Cleanup(func()) }) *Synchronizable
NewSynchronizable creates a new instance of Synchronizable. 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 (*Synchronizable) Clean ¶
func (_m *Synchronizable) Clean() error
Clean provides a mock function with given fields:
func (*Synchronizable) PartialSync ¶
func (_m *Synchronizable) PartialSync(lastEditTime *int32) error
PartialSync provides a mock function with given fields: lastEditTime
func (*Synchronizable) Sync ¶
func (_m *Synchronizable) Sync() error
Sync provides a mock function with given fields:
type TaskExtendedService ¶
TaskExtendedService is an autogenerated mock type for the TaskExtendedService type
func NewTaskExtendedService ¶
func NewTaskExtendedService(t interface { mock.TestingT Cleanup(func()) }) *TaskExtendedService
NewTaskExtendedService creates a new instance of TaskExtendedService. 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 (*TaskExtendedService) Complete ¶
func (_m *TaskExtendedService) Complete(id int64) (*models.Task, error)
Complete provides a mock function with given fields: id
func (*TaskExtendedService) Create ¶
func (_m *TaskExtendedService) Create(title string) (*models.Task, error)
Create provides a mock function with given fields: title
func (*TaskExtendedService) CreateByQuery ¶
func (_m *TaskExtendedService) CreateByQuery(query *queries.TaskCreateQuery) (*models.Task, error)
CreateByQuery provides a mock function with given fields: query
func (*TaskExtendedService) Delete ¶
func (_m *TaskExtendedService) Delete(id int64) error
Delete provides a mock function with given fields: id
func (*TaskExtendedService) DeleteBatch ¶
func (_m *TaskExtendedService) DeleteBatch(ids []int64) ([]int64, []*models.TaskDeleteItem, error)
DeleteBatch provides a mock function with given fields: ids
func (*TaskExtendedService) EditByQuery ¶
func (_m *TaskExtendedService) EditByQuery(query *queries.TaskEditQuery) (*models.Task, error)
EditByQuery provides a mock function with given fields: query
func (*TaskExtendedService) FindByID ¶
func (_m *TaskExtendedService) FindByID(id int64) (*models.Task, error)
FindByID provides a mock function with given fields: id
func (*TaskExtendedService) List ¶
func (_m *TaskExtendedService) List(start int64, limit int64) ([]*models.Task, *models.PaginatedInfo, error)
List provides a mock function with given fields: start, limit
func (*TaskExtendedService) ListAll ¶
func (_m *TaskExtendedService) ListAll() ([]*models.Task, int, error)
ListAll provides a mock function with given fields:
func (*TaskExtendedService) ListAllByQuery ¶
func (_m *TaskExtendedService) ListAllByQuery(query *queries.TaskListQuery) ([]*models.Task, error)
ListAllByQuery provides a mock function with given fields: query
func (*TaskExtendedService) ListDeleted ¶
func (_m *TaskExtendedService) ListDeleted(lastEditTime *int32) ([]*models.TaskDeleted, error)
ListDeleted provides a mock function with given fields: lastEditTime
func (*TaskExtendedService) ListWithChanged ¶
func (_m *TaskExtendedService) ListWithChanged(lastEditTime *int32, start int64, limit int64) ([]*models.Task, *models.PaginatedInfo, error)
ListWithChanged provides a mock function with given fields: lastEditTime, start, limit
func (*TaskExtendedService) Start ¶
func (_m *TaskExtendedService) Start(id int64) error
Start provides a mock function with given fields: id
func (*TaskExtendedService) Stop ¶
func (_m *TaskExtendedService) Stop(id int64) error
Stop provides a mock function with given fields: id
func (*TaskExtendedService) UnComplete ¶
func (_m *TaskExtendedService) UnComplete(id int64) (*models.Task, error)
UnComplete provides a mock function with given fields: id
type TaskPersistenceExtService ¶
TaskPersistenceExtService is an autogenerated mock type for the TaskPersistenceExtService type
func NewTaskPersistenceExtService ¶
func NewTaskPersistenceExtService(t interface { mock.TestingT Cleanup(func()) }) *TaskPersistenceExtService
NewTaskPersistenceExtService creates a new instance of TaskPersistenceExtService. 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 (*TaskPersistenceExtService) Clean ¶
func (_m *TaskPersistenceExtService) Clean() error
Clean provides a mock function with given fields:
func (*TaskPersistenceExtService) Complete ¶
func (_m *TaskPersistenceExtService) Complete(id int64) (*models.Task, error)
Complete provides a mock function with given fields: id
func (*TaskPersistenceExtService) Create ¶
func (_m *TaskPersistenceExtService) Create(title string) (*models.Task, error)
Create provides a mock function with given fields: title
func (*TaskPersistenceExtService) CreateByQuery ¶
func (_m *TaskPersistenceExtService) CreateByQuery(query *queries.TaskCreateQuery) (*models.Task, error)
CreateByQuery provides a mock function with given fields: query
func (*TaskPersistenceExtService) Delete ¶
func (_m *TaskPersistenceExtService) Delete(id int64) error
Delete provides a mock function with given fields: id
func (*TaskPersistenceExtService) DeleteBatch ¶
func (_m *TaskPersistenceExtService) DeleteBatch(ids []int64) ([]int64, []*models.TaskDeleteItem, error)
DeleteBatch provides a mock function with given fields: ids
func (*TaskPersistenceExtService) EditByQuery ¶
func (_m *TaskPersistenceExtService) EditByQuery(query *queries.TaskEditQuery) (*models.Task, error)
EditByQuery provides a mock function with given fields: query
func (*TaskPersistenceExtService) FindByID ¶
func (_m *TaskPersistenceExtService) FindByID(id int64) (*models.Task, error)
FindByID provides a mock function with given fields: id
func (*TaskPersistenceExtService) List ¶
func (_m *TaskPersistenceExtService) List(start int64, limit int64) ([]*models.Task, *models.PaginatedInfo, error)
List provides a mock function with given fields: start, limit
func (*TaskPersistenceExtService) ListAll ¶
func (_m *TaskPersistenceExtService) ListAll() ([]*models.Task, int, error)
ListAll provides a mock function with given fields:
func (*TaskPersistenceExtService) ListAllByQuery ¶
func (_m *TaskPersistenceExtService) ListAllByQuery(query *queries.TaskListQuery) ([]*models.Task, error)
ListAllByQuery provides a mock function with given fields: query
func (*TaskPersistenceExtService) ListDeleted ¶
func (_m *TaskPersistenceExtService) ListDeleted(lastEditTime *int32) ([]*models.TaskDeleted, error)
ListDeleted provides a mock function with given fields: lastEditTime
func (*TaskPersistenceExtService) ListWithChanged ¶
func (_m *TaskPersistenceExtService) ListWithChanged(lastEditTime *int32, start int64, limit int64) ([]*models.Task, *models.PaginatedInfo, error)
ListWithChanged provides a mock function with given fields: lastEditTime, start, limit
func (*TaskPersistenceExtService) PartialSync ¶
func (_m *TaskPersistenceExtService) PartialSync(lastEditTime *int32) error
PartialSync provides a mock function with given fields: lastEditTime
func (*TaskPersistenceExtService) Start ¶
func (_m *TaskPersistenceExtService) Start(id int64) error
Start provides a mock function with given fields: id
func (*TaskPersistenceExtService) Stop ¶
func (_m *TaskPersistenceExtService) Stop(id int64) error
Stop provides a mock function with given fields: id
func (*TaskPersistenceExtService) Sync ¶
func (_m *TaskPersistenceExtService) Sync() error
Sync provides a mock function with given fields:
func (*TaskPersistenceExtService) UnComplete ¶
func (_m *TaskPersistenceExtService) UnComplete(id int64) (*models.Task, error)
UnComplete provides a mock function with given fields: id
type TaskRichService ¶
TaskRichService is an autogenerated mock type for the TaskRichService type
func NewTaskRichService ¶
func NewTaskRichService(t interface { mock.TestingT Cleanup(func()) }) *TaskRichService
NewTaskRichService creates a new instance of TaskRichService. 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 (*TaskRichService) Find ¶
func (_m *TaskRichService) Find(id int64) (*models.RichTask, error)
Find provides a mock function with given fields: id
type TaskService ¶
TaskService is an autogenerated mock type for the TaskService type
func NewTaskService ¶
func NewTaskService(t interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
func (*TaskService) Complete ¶
func (_m *TaskService) Complete(id int64) (*models.Task, error)
Complete provides a mock function with given fields: id
func (*TaskService) Create ¶
func (_m *TaskService) Create(title string) (*models.Task, error)
Create provides a mock function with given fields: title
func (*TaskService) CreateByQuery ¶
func (_m *TaskService) CreateByQuery(query *queries.TaskCreateQuery) (*models.Task, error)
CreateByQuery provides a mock function with given fields: query
func (*TaskService) Delete ¶
func (_m *TaskService) Delete(id int64) error
Delete provides a mock function with given fields: id
func (*TaskService) DeleteBatch ¶
func (_m *TaskService) DeleteBatch(ids []int64) ([]int64, []*models.TaskDeleteItem, error)
DeleteBatch provides a mock function with given fields: ids
func (*TaskService) EditByQuery ¶
func (_m *TaskService) EditByQuery(query *queries.TaskEditQuery) (*models.Task, error)
EditByQuery provides a mock function with given fields: query
func (*TaskService) FindByID ¶
func (_m *TaskService) FindByID(id int64) (*models.Task, error)
FindByID provides a mock function with given fields: id
func (*TaskService) List ¶
func (_m *TaskService) List(start int64, limit int64) ([]*models.Task, *models.PaginatedInfo, error)
List provides a mock function with given fields: start, limit
func (*TaskService) ListAll ¶
func (_m *TaskService) ListAll() ([]*models.Task, int, error)
ListAll provides a mock function with given fields:
func (*TaskService) ListDeleted ¶
func (_m *TaskService) ListDeleted(lastEditTime *int32) ([]*models.TaskDeleted, error)
ListDeleted provides a mock function with given fields: lastEditTime
func (*TaskService) ListWithChanged ¶
func (_m *TaskService) ListWithChanged(lastEditTime *int32, start int64, limit int64) ([]*models.Task, *models.PaginatedInfo, error)
ListWithChanged provides a mock function with given fields: lastEditTime, start, limit
func (*TaskService) Start ¶
func (_m *TaskService) Start(id int64) error
Start provides a mock function with given fields: id
func (*TaskService) Stop ¶
func (_m *TaskService) Stop(id int64) error
Stop provides a mock function with given fields: id
func (*TaskService) UnComplete ¶
func (_m *TaskService) UnComplete(id int64) (*models.Task, error)
UnComplete provides a mock function with given fields: id
Source Files ¶
- account_ext_service.go
- account_service.go
- context_persistence_service.go
- context_service.go
- folder_persistence_service.go
- folder_service.go
- goal_persistence_service.go
- goal_service.go
- saved_search_service.go
- setting_service.go
- synchronizable.go
- task_extended_service.go
- task_persistence_ext_service.go
- task_rich_service.go
- task_service.go