src

package
v0.0.0-...-cb288ec Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

mockgen

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

func GetClient(config *oauth2.Config) *http.Client

Retrieve a token, saves the token, then returns the generated client.

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)

func (*TODOOpWrap) Update

func (op *TODOOpWrap) Update(tasklistid string, tasklist *tasks.TaskList, opts ...googleapi.CallOption) (*tasks.TaskList, 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 Task

type Task struct {
	// contains filtered or unexported fields
}

func NewTask

func NewTask(todoID, title, notes, due string) *Task

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)

func (*TaskOpWrap) Update

func (op *TaskOpWrap) Update(tasklistid string,
	taskid string,
	task *tasks.Task,
	opts ...googleapi.CallOption) (*tasks.Task, 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL