task-processor/internal/remote/interface.go
2025-12-20 16:05:56 +03:00

12 lines
303 B
Go

package remote
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)
}