store

package
v0.0.0-...-76ad57f Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Todo

type Todo interface {
	GetTodo(ctx context.Context, id int) (models.Todo, error)
	DeleteTodo(ctx context.Context, id int) (int64, error)
	PostTodo(ctx context.Context, todo models.Todo) (int, error)
}

Todo todo

type TodoStore

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

TodoStore todo

func NewTodoStore

func NewTodoStore(sqlClient database.SQLClient) *TodoStore

NewTodoStore todo

func (*TodoStore) DeleteTodo

func (t *TodoStore) DeleteTodo(ctx context.Context, id int) (int64, error)

DeleteTodo todo

func (*TodoStore) GetTodo

func (t *TodoStore) GetTodo(ctx context.Context, id int) (models.Todo, error)

GetTodo todo

func (*TodoStore) PostTodo

func (t *TodoStore) PostTodo(ctx context.Context, todo models.Todo) (int, error)

PostTodo todo

Jump to

Keyboard shortcuts

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