repository

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type RqliteTodoRepository added in v0.0.25

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

func (*RqliteTodoRepository) CompleteTodo added in v0.0.25

func (r *RqliteTodoRepository) CompleteTodo(id int64) error

func (*RqliteTodoRepository) CreateTodo added in v0.0.25

func (r *RqliteTodoRepository) CreateTodo(todo pb.Todo) (int64, error)

func (*RqliteTodoRepository) DeleteTodo added in v0.0.25

func (r *RqliteTodoRepository) DeleteTodo(id int64) error

func (*RqliteTodoRepository) GetTodo added in v0.0.25

func (r *RqliteTodoRepository) GetTodo(id int64) (pb.Todo, error)

func (*RqliteTodoRepository) ListRemindTodos added in v0.0.25

func (r *RqliteTodoRepository) ListRemindTodos() ([]pb.Todo, error)

func (*RqliteTodoRepository) ListTodos added in v0.0.25

func (r *RqliteTodoRepository) ListTodos() ([]pb.Todo, error)

func (*RqliteTodoRepository) UpdateTodo added in v0.0.25

func (r *RqliteTodoRepository) UpdateTodo(todo pb.Todo) error

type TodoRepository

type TodoRepository interface {
	CreateTodo(todo pb.Todo) (int64, error)
	ListTodos() ([]pb.Todo, error)
	ListRemindTodos() ([]pb.Todo, error)
	GetTodo(id int64) (pb.Todo, error)
	CompleteTodo(id int64) error
	UpdateTodo(todo pb.Todo) error
	DeleteTodo(id int64) error
}

func CreateTodoRepository

func CreateTodoRepository(id string) (TodoRepository, error)

func NewRqliteTodoRepository added in v0.0.25

func NewRqliteTodoRepository(db *rqlite.Conn) TodoRepository

Jump to

Keyboard shortcuts

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