12 lines
304 B
Go
12 lines
304 B
Go
package network
|
|
|
|
import (
|
|
"context"
|
|
"task-processor/internal/shared"
|
|
pb "task-processor/proto/taskProcessor"
|
|
)
|
|
|
|
type Handler interface {
|
|
RequestTasks(ctx context.Context, client pb.TaskProcessorClient) []shared.TaskResponse
|
|
SendResult(client pb.TaskProcessorClient, tasksDone []shared.TaskResult)
|
|
}
|