usecase

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PATH_FILES = "../../domain/usecase/templates/%s.tmpl"
)

Functions

This section is empty.

Types

type GenerateQuestionFile

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

func (*GenerateQuestionFile) Execute

func (uc *GenerateQuestionFile) Execute() error

type GenerateSolutionFile

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

func NewGenerateSolutionFile

func NewGenerateSolutionFile(q *entity.Question, w service.FileWriter, fileName string, path string, boilerplate string, lang string, template string) *GenerateSolutionFile

func (*GenerateSolutionFile) Execute

func (uc *GenerateSolutionFile) Execute() error

type GetProblem

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

func NewGetDailyChallenge

func NewGetDailyChallenge(scrapper repo.Problem) *GetProblem

func NewGetProblemByName

func NewGetProblemByName(scrapper repo.Problem, name string) *GetProblem

func NewGetProblemByNumber

func NewGetProblemByNumber(scrapper repo.Problem, num int) *GetProblem

func NewGetProblemByUrl

func NewGetProblemByUrl(scrapper repo.Problem, url string) *GetProblem

func (*GetProblem) Execute

func (uc *GetProblem) Execute() (*entity.Question, error)

Jump to

Keyboard shortcuts

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