repository

package
v0.0.0-...-f068abf Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheReaderWriter

type CacheReaderWriter interface {
	GetAllTodo(ctx context.Context, k string) []entity.Todo
	SetAllTodo(ctx context.Context, k string, v []entity.Todo) error
	GetTodoByID(ctx context.Context, k string) entity.Todo
	SetTodoByID(ctx context.Context, k string, v entity.Todo) error
	//
	Close() error
}

type DatabaseReaderWriter

type DatabaseReaderWriter interface {
	GetAllTodo(ctx context.Context) ([]entity.Todo, error)
	GetTodoByID(ctx context.Context, id string) (entity.Todo, error)
	CreateTodo(ctx context.Context, todo entity.Todo) error
	UpdateTodo(ctx context.Context, todo entity.Todo) error
	DeleteTodo(ctx context.Context, id string) error
	//
	GetDB() *sql.DB
	Close() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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