11 lines
229 B
Go
11 lines
229 B
Go
package taskAgent
|
|
|
|
import (
|
|
"context"
|
|
"task-processor/internal/structs"
|
|
)
|
|
|
|
type TaskAgent interface {
|
|
FetchTasks(ctx context.Context) ([]structs.Task, error)
|
|
SendResults(ctx context.Context, results []structs.Result) error
|
|
}
|