Documentation ¶
Overview ¶
mockgen
Index ¶
- func GetClient(config *oauth2.Config) *http.Client
- type TODOOpWrap
- func (op *TODOOpWrap) Delete(tasklistid string, opts ...googleapi.CallOption) error
- func (op *TODOOpWrap) Insert(tasklist *tasks.TaskList, opts ...googleapi.CallOption) (*tasks.TaskList, error)
- func (op *TODOOpWrap) List(maxCount int64, opts ...googleapi.CallOption) (*tasks.TaskLists, error)
- func (op *TODOOpWrap) Update(tasklistid string, tasklist *tasks.TaskList, opts ...googleapi.CallOption) (*tasks.TaskList, error)
- type TODOOpWrapper
- type TODOOperation
- func (op *TODOOperation) Create(title string) (*tasks.TaskList, error)
- func (op *TODOOperation) DeleteByTitle(title string) error
- func (op *TODOOperation) First() (*tasks.TaskList, error)
- func (op *TODOOperation) List() ([]*tasks.TaskList, error)
- func (op *TODOOperation) UpdateTitleByTODOID(prevTitle, nextTitle string) (*tasks.TaskList, error)
- type TODOOperator
- type Task
- type TaskOpWrap
- func (op *TaskOpWrap) Delete(tasklistid string, taskid string, opts ...googleapi.CallOption) error
- func (op *TaskOpWrap) Insert(tasklistid string, task *tasks.Task, opts ...googleapi.CallOption) (*tasks.Task, error)
- func (op *TaskOpWrap) List(tasklistid string, opts ...googleapi.CallOption) (*tasks.Tasks, error)
- func (op *TaskOpWrap) Update(tasklistid string, taskid string, task *tasks.Task, ...) (*tasks.Task, error)
- type TaskOpWrapper
- type TaskOperation
- type TaskOperator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TODOOpWrap ¶
type TODOOpWrap struct {
// contains filtered or unexported fields
}
func (*TODOOpWrap) Delete ¶
func (op *TODOOpWrap) Delete(tasklistid string, opts ...googleapi.CallOption) error
func (*TODOOpWrap) Insert ¶
func (op *TODOOpWrap) Insert(tasklist *tasks.TaskList, opts ...googleapi.CallOption) (*tasks.TaskList, error)
func (*TODOOpWrap) List ¶
func (op *TODOOpWrap) List(maxCount int64, opts ...googleapi.CallOption) (*tasks.TaskLists, error)
type TODOOpWrapper ¶
type TODOOpWrapper interface { List(maxCount int64, opts ...googleapi.CallOption) (*tasks.TaskLists, error) Insert(tasklist *tasks.TaskList, opts ...googleapi.CallOption) (*tasks.TaskList, error) Update(tasklistid string, tasklist *tasks.TaskList, opts ...googleapi.CallOption) (*tasks.TaskList, error) Delete(tasklistid string, opts ...googleapi.CallOption) error }
func NewTODOOOpWrap ¶
func NewTODOOOpWrap(srv *tasks.TasklistsService) TODOOpWrapper
type TODOOperation ¶
type TODOOperation struct {
// contains filtered or unexported fields
}
func (*TODOOperation) Create ¶
func (op *TODOOperation) Create(title string) (*tasks.TaskList, error)
func (*TODOOperation) DeleteByTitle ¶
func (op *TODOOperation) DeleteByTitle(title string) error
func (*TODOOperation) First ¶
func (op *TODOOperation) First() (*tasks.TaskList, error)
func (*TODOOperation) List ¶
func (op *TODOOperation) List() ([]*tasks.TaskList, error)
func (*TODOOperation) UpdateTitleByTODOID ¶
func (op *TODOOperation) UpdateTitleByTODOID(prevTitle, nextTitle string) (*tasks.TaskList, error)
type TODOOperator ¶
type TODOOperator interface { List() ([]*tasks.TaskList, error) First() (*tasks.TaskList, error) Create(title string) (*tasks.TaskList, error) DeleteByTitle(title string) error UpdateTitleByTODOID(prevTitle, nextTitle string) (*tasks.TaskList, error) }
func NewTODOOperation ¶
func NewTODOOperation(wrap TODOOpWrapper) TODOOperator
type TaskOpWrap ¶
type TaskOpWrap struct {
// contains filtered or unexported fields
}
func (*TaskOpWrap) Delete ¶
func (op *TaskOpWrap) Delete(tasklistid string, taskid string, opts ...googleapi.CallOption) error
func (*TaskOpWrap) Insert ¶
func (op *TaskOpWrap) Insert(tasklistid string, task *tasks.Task, opts ...googleapi.CallOption) (*tasks.Task, error)
func (*TaskOpWrap) List ¶
func (op *TaskOpWrap) List(tasklistid string, opts ...googleapi.CallOption) (*tasks.Tasks, error)
type TaskOpWrapper ¶
type TaskOpWrapper interface { List(tasklistid string, opts ...googleapi.CallOption) (*tasks.Tasks, error) Insert(tasklistid string, task *tasks.Task, opts ...googleapi.CallOption) (*tasks.Task, error) Update(tasklistid string, taskid string, task *tasks.Task, opts ...googleapi.CallOption) (*tasks.Task, error) Delete(tasklistid string, taskid string, opts ...googleapi.CallOption) error }
func NewTaskOpWrap ¶
func NewTaskOpWrap(srv *tasks.TasksService) TaskOpWrapper
type TaskOperation ¶
type TaskOperation struct {
// contains filtered or unexported fields
}
func (*TaskOperation) CreateByTODOID ¶
func (op *TaskOperation) CreateByTODOID(task *Task) (*tasks.Task, error)
func (*TaskOperation) DeleteByTitle ¶
func (op *TaskOperation) DeleteByTitle(todoID, title string) error
func (*TaskOperation) ListByTODOID ¶
func (op *TaskOperation) ListByTODOID(id string) ([]*tasks.Task, error)
func (*TaskOperation) UpdateByTODOID ¶
func (op *TaskOperation) UpdateByTODOID(task *Task) (*tasks.Task, error)
type TaskOperator ¶
type TaskOperator interface { ListByTODOID(id string) ([]*tasks.Task, error) CreateByTODOID(task *Task) (*tasks.Task, error) UpdateByTODOID(task *Task) (*tasks.Task, error) DeleteByTitle(todoID, title string) error }
func NewTaskOperation ¶
func NewTaskOperation(op TaskOpWrapper) TaskOperator
Directories ¶
Path | Synopsis |
---|---|
Package mock_src is a generated GoMock package.
|
Package mock_src is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.