parser-v2/internal/network/interface.go

13 lines
306 B
Go
Raw Permalink Normal View History

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