Documentation
¶
Index ¶
- Constants
- Variables
- type AgentService
- type HttpService
- type Pong
- type ProjectService
- func (svc *ProjectService) Execute(req *dto.PromptRequest) (*workers.Project, error)
- func (svc ProjectService) Id() string
- func (svc *ProjectService) Run(p *workers.Project) (*workers.Project, error)
- func (svc *ProjectService) Start() error
- func (svc *ProjectService) Status(projectID string) (*workers.Project, error)
- type TaskService
Constants ¶
View Source
const AGENT_SVC = "agent_svc"
View Source
const PROJECT_SVC = "project_svc"
View Source
const TASK_SVC = "task_svc"
Variables ¶
View Source
var DeleteResponseOK = `{"status": 200, "error": ""}`
Functions ¶
This section is empty.
Types ¶
type AgentService ¶
type AgentService struct { services.DefaultService // contains filtered or unexported fields }
func (AgentService) Id ¶
func (svc AgentService) Id() string
func (*AgentService) LoadAgents ¶
func (svc *AgentService) LoadAgents(project *workers.Project) error
func (*AgentService) RegisterAgent ¶
func (*AgentService) Start ¶
func (svc *AgentService) Start() error
type HttpService ¶
type HttpService struct { services.DefaultService BaseURL string Port int // contains filtered or unexported fields }
func (HttpService) Id ¶
func (svc HttpService) Id() string
func (*HttpService) Start ¶
func (svc *HttpService) Start() error
type ProjectService ¶
type ProjectService struct { services.DefaultService // contains filtered or unexported fields }
func (*ProjectService) Execute ¶
func (svc *ProjectService) Execute(req *dto.PromptRequest) (*workers.Project, error)
func (ProjectService) Id ¶
func (svc ProjectService) Id() string
func (*ProjectService) Start ¶
func (svc *ProjectService) Start() error
type TaskService ¶
type TaskService struct { services.DefaultService // contains filtered or unexported fields }
func (*TaskService) Execute ¶
func (svc *TaskService) Execute(project *workers.Project, task *models.Task) (*models.WorkerResponse, error)
Execute a task
func (TaskService) Id ¶
func (svc TaskService) Id() string
func (*TaskService) PromptToTask ¶
func (svc *TaskService) PromptToTask(req *dto.PromptRequest) *models.Task
func (*TaskService) Start ¶
func (svc *TaskService) Start() error
Click to show internal directories.
Click to hide internal directories.