Documentation ¶
Index ¶
- type InMemoryToDoListRepository
- func (repo *InMemoryToDoListRepository) DeleteById(id uuid.UUID) error
- func (repo *InMemoryToDoListRepository) FindAll() ([]aggregates.ToDoList, error)
- func (repo *InMemoryToDoListRepository) FindById(id uuid.UUID) (*aggregates.ToDoList, error)
- func (repo *InMemoryToDoListRepository) Store(tdl aggregates.ToDoList) error
- type NotFoundError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemoryToDoListRepository ¶
type InMemoryToDoListRepository struct {
ToDoLists []aggregates.ToDoList
}
func NewInMemoryToDoListRepository ¶
func NewInMemoryToDoListRepository() *InMemoryToDoListRepository
func (*InMemoryToDoListRepository) DeleteById ¶
func (repo *InMemoryToDoListRepository) DeleteById(id uuid.UUID) error
func (*InMemoryToDoListRepository) FindAll ¶
func (repo *InMemoryToDoListRepository) FindAll() ([]aggregates.ToDoList, error)
func (*InMemoryToDoListRepository) FindById ¶
func (repo *InMemoryToDoListRepository) FindById(id uuid.UUID) (*aggregates.ToDoList, error)
func (*InMemoryToDoListRepository) Store ¶
func (repo *InMemoryToDoListRepository) Store(tdl aggregates.ToDoList) error
type NotFoundError ¶
func (NotFoundError) Error ¶
func (e NotFoundError) Error() string
Click to show internal directories.
Click to hide internal directories.