Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheReaderWriter ¶
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 }
Click to show internal directories.
Click to hide internal directories.