usecase

package
v0.0.0-...-b4b3e93 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VideoGeneratorUseCase

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

func NewVideoGeneratorUseCase

func NewVideoGeneratorUseCase(repo repository.VideoRepository, workerClient worker.WorkerClient, logger *slog.Logger) *VideoGeneratorUseCase

func (*VideoGeneratorUseCase) CreateGeneration

func (uc *VideoGeneratorUseCase) CreateGeneration(ctx context.Context, prompt string) (string, error)

func (*VideoGeneratorUseCase) GetGenerationStatus

func (uc *VideoGeneratorUseCase) GetGenerationStatus(ctx context.Context, id string) (*ent.Generation, error)

func (*VideoGeneratorUseCase) HealthCheck

func (uc *VideoGeneratorUseCase) HealthCheck(ctx context.Context) error

func (*VideoGeneratorUseCase) StreamGenerationStatus

func (uc *VideoGeneratorUseCase) StreamGenerationStatus(ctx context.Context, id string, sendUpdate func(*ent.Generation) error) error

Jump to

Keyboard shortcuts

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