task-processor/internal/network/interface.go

13 lines
304 B
Go
Raw Permalink Normal View History

2025-10-02 20:35:53 +03:00
package network
import (
"context"
2025-10-03 19:17:01 +03:00
"task-processor/internal/shared"
pb "task-processor/proto/taskProcessor"
2025-10-02 20:35:53 +03:00
)
type Handler interface {
RequestTasks(ctx context.Context, client pb.TaskProcessorClient) []shared.TaskResponse
SendResult(client pb.TaskProcessorClient, tasksDone []shared.TaskResult)
}