remove

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: GPL-3.0, GPL-3.0-or-later Imports: 8 Imported by: 0

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 Interface

type Interface interface {
	Execute(context.Context, Request, OutputPort)
}

type Option

type Option func(*Interactor)

func WithAuth

func WithAuth(a auth.Auth) Option

type OutputPort

type OutputPort interface {
	Error(error)
	SuccessDeleteAnnotation(Response)
}

type Repo

type Repo interface {
	RemoveAnnotation(a.AnnotationId) error
	GroupOfAnnotation(a.AnnotationId) (*string, error)
}

type Request

type Request struct {
	Id string
}

type Response

type Response struct {
	Id a.AnnotationId
}

Jump to

Keyboard shortcuts

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