repository

package
v0.0.0-...-34c9f11 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TodolistRepository

type TodolistRepository interface {
	Save(dbPath string, todolistRequest domain.Todolist) domain.Todolist
	Update(dbPath string, todolistRequest domain.Todolist) (domain.Todolist, error)
	Delete(dbPath string, todolistIdParam string) error
	FindAll(dbPath string) []domain.Todolist
}

type TodolistRepositoryImpl

type TodolistRepositoryImpl struct{}

func NewTodolistRepositoryImpl

func NewTodolistRepositoryImpl() *TodolistRepositoryImpl

func (*TodolistRepositoryImpl) Delete

func (repository *TodolistRepositoryImpl) Delete(dbPath string, todolistIdParam string) error

func (*TodolistRepositoryImpl) FindAll

func (repository *TodolistRepositoryImpl) FindAll(dbPath string) []domain.Todolist

func (*TodolistRepositoryImpl) Save

func (repository *TodolistRepositoryImpl) Save(dbPath string, todolistRequest domain.Todolist) domain.Todolist

func (*TodolistRepositoryImpl) Update

func (repository *TodolistRepositoryImpl) Update(dbPath string, todolistRequest domain.Todolist) (domain.Todolist, error)

Jump to

Keyboard shortcuts

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