Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakePresenter ¶
type FakePresenter struct {
GotSuccess bool
t.TestingErrPresenter
}
func (*FakePresenter) SuccessDeleteAnnotation ¶
func (p *FakePresenter) SuccessDeleteAnnotation(Response)
type FakeRepo ¶
type FakeRepo struct {
Err error
Got a.AnnotationId
}
func (*FakeRepo) GroupOfAnnotation ¶
func (r *FakeRepo) GroupOfAnnotation(annotationId a.AnnotationId) (*string, error)
func (*FakeRepo) RemoveAnnotation ¶
func (r *FakeRepo) RemoveAnnotation(annotationId a.AnnotationId) error
type Interactor ¶
type Interactor struct {
// contains filtered or unexported fields
}
func NewInteractor ¶
func NewInteractor(repo Repo, opts ...Option) *Interactor
func (*Interactor) Execute ¶
func (i *Interactor) Execute(ctx context.Context, r Request, out OutputPort)
type OutputPort ¶
type Repo ¶
type Repo interface {
RemoveAnnotation(a.AnnotationId) error
GroupOfAnnotation(a.AnnotationId) (*string, error)
}
type Response ¶
type Response struct {
Id a.AnnotationId
}
Click to show internal directories.
Click to hide internal directories.