- Reorganized project structure into services/ and apps/ directories for better separation of concerns - Added comprehensive CI/CD pipeline with GitHub Actions for testing and Docker builds - Created .dockerignore file to optimize container builds - Updated Makefile with new targets for each service and application - Added detailed README with architecture overview, setup instructions and development guidelines - Moved cron-analyzer to dedicate
21 lines
456 B
Go
21 lines
456 B
Go
package ports
|
|
|
|
import "github.com/jobs-scraper/internal/pkg/domain"
|
|
|
|
type JobCommands struct {
|
|
CreateJob JobCommandHandler
|
|
}
|
|
|
|
// CreateJobCommand represents the command to create a job
|
|
type CreateJobCommand struct {
|
|
Location string
|
|
Keywords string
|
|
FWT string
|
|
Provider domain.JobProvider
|
|
NumPages int
|
|
}
|
|
|
|
// JobCommandHandler defines the interface for handling job commands
|
|
type JobCommandHandler interface {
|
|
Handle(cmd CreateJobCommand) error
|
|
}
|