2026-02-18 19:57:50 +03:00
|
|
|
package taskAgent
|
|
|
|
|
|
2026-02-21 16:59:38 +03:00
|
|
|
import (
|
|
|
|
|
"context"
|
|
|
|
|
"task-processor/internal/structs"
|
|
|
|
|
)
|
2026-02-18 19:57:50 +03:00
|
|
|
|
|
|
|
|
type TaskAgent interface {
|
2026-02-21 16:59:38 +03:00
|
|
|
FetchTasks(ctx context.Context) ([]structs.Task, error)
|
|
|
|
|
SendResults(ctx context.Context, results []structs.Result) error
|
2026-02-18 19:57:50 +03:00
|
|
|
}
|