usecase

package
v0.0.0-...-67f37b2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidUUID = errors.New("UUID inválido")
)

Functions

This section is empty.

Types

type GetOperationStatusUseCase

type GetOperationStatusUseCase interface {
	Execute(ctx context.Context, operationID, songID string) (*model.OperationResult, error)
}

type GetOperationStatusUseCaseImpl

type GetOperationStatusUseCaseImpl struct {
	// contains filtered or unexported fields
}

func NewGetOperationStatusUseCase

func NewGetOperationStatusUseCase(operationRepository port.OperationRepository) *GetOperationStatusUseCaseImpl

func (*GetOperationStatusUseCaseImpl) Execute

func (uc *GetOperationStatusUseCaseImpl) Execute(ctx context.Context, operationID, songID string) (*model.OperationResult, error)

type InitialDownloadUseCase

type InitialDownloadUseCase interface {
	Execute(ctx context.Context, song string) (string, string, error)
}

type InitiateDownloadUseCase

type InitiateDownloadUseCase struct {
	// contains filtered or unexported fields
}

func NewInitiateDownloadUseCase

func NewInitiateDownloadUseCase(audioService service.AudioProcessor, youtubeAPI api.YouTubeService) *InitiateDownloadUseCase

func (*InitiateDownloadUseCase) Execute

func (uc *InitiateDownloadUseCase) Execute(ctx context.Context, song string) (string, string, error)

Jump to

Keyboard shortcuts

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