usecase

package
v0.0.0-...-833cb33 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2020 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MediaInteractor

type MediaInteractor interface {
	Create(ctx context.Context, aggregate *domain.MediaAggregate) (*domain.Media, error)
	List(ctx context.Context, pageToken, pageSize string, filterParams core.FilterParams) ([]*domain.Media, string, error)
	Get(ctx context.Context, id string) (*domain.Media, error)
	Update(ctx context.Context, aggregate *domain.MediaUpdateAggregate) (*domain.Media, error)
	Delete(ctx context.Context, id string) error
	Restore(ctx context.Context, id string) error
	HardDelete(ctx context.Context, id string) error
}

type MediaSAGAInteractor

type MediaSAGAInteractor interface {
	VerifyAuthor(ctx context.Context, rootID string) error
	UpdateStatic(ctx context.Context, rootID string, urlJSON []byte) error
	RemoveStatic(ctx context.Context, rootID []byte) error
	Done(ctx context.Context, rootID, operation string) error
	Failed(ctx context.Context, rootID, operation, snapshot string) error
}

Jump to

Keyboard shortcuts

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