Documentation
¶
Index ¶
- type StringDeleter
- type StringInteractor
- func (s *StringInteractor) CreateOne(string core.String) (core.String, error)
- func (s *StringInteractor) DeleteById(id uuid.UUID) error
- func (s *StringInteractor) FindAll() ([]core.String, error)
- func (s *StringInteractor) FindAllByThread(threadId uuid.UUID) ([]core.String, error)
- func (s *StringInteractor) UpdateName(stringId uuid.UUID, name string) error
- func (s *StringInteractor) UpdateOrder(stringOrders []core.StringOrder) error
- type StringRepository
- type ThreadInteractor
- type ThreadRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StringDeleter ¶
type StringInteractor ¶
type StringInteractor struct {
StringRepository StringRepository
Logger logging.Logger
}
func (*StringInteractor) DeleteById ¶
func (s *StringInteractor) DeleteById(id uuid.UUID) error
func (*StringInteractor) FindAllByThread ¶
func (*StringInteractor) UpdateName ¶
func (s *StringInteractor) UpdateName(stringId uuid.UUID, name string) error
func (*StringInteractor) UpdateOrder ¶
func (s *StringInteractor) UpdateOrder(stringOrders []core.StringOrder) error
type StringRepository ¶
type StringRepository interface {
FindAll() ([]core.String, error)
FindAllByThread(threadId uuid.UUID) ([]core.String, error)
CreateOne(core.String) (core.String, error)
DeleteById(id uuid.UUID) error
UpdateName(stringId uuid.UUID, name string) error
UpdateOrder(stringOrders []core.StringOrder) error
}
type ThreadInteractor ¶
type ThreadInteractor struct {
Repo ThreadRepository
StringDeleter StringDeleter
Logger logging.Logger
}
func (*ThreadInteractor) DeleteById ¶
func (t *ThreadInteractor) DeleteById(id uuid.UUID) error
DeleteById deletes all the strings associated with a thread and then deletes the thread itself.
Click to show internal directories.
Click to hide internal directories.