-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Sidhant Kohli <[email protected]>
- Loading branch information
Sidhant Kohli
committed
Jul 2, 2024
1 parent
5b76519
commit db01722
Showing
22 changed files
with
1,791 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
syntax = "proto3"; | ||
|
||
option go_package = "github.com/numaproj/numaflow-go/pkg/apis/proto/batchmap/v1"; | ||
|
||
import "google/protobuf/empty.proto"; | ||
import "google/protobuf/timestamp.proto"; | ||
|
||
package batchmap.v1; | ||
|
||
service BatchMap { | ||
// IsReady is the heartbeat endpoint for gRPC. | ||
rpc IsReady(google.protobuf.Empty) returns (ReadyResponse); | ||
|
||
// BatchMapFn is a bi-directional streaming rpc which applies a | ||
// Map function on each BatchMapRequest element of the stream and then returns streams | ||
// back MapResponse elements. | ||
rpc BatchMapFn(stream BatchMapRequest) returns (stream BatchMapResponse); | ||
} | ||
|
||
/** | ||
* MapRequest represents a request element. | ||
*/ | ||
message BatchMapRequest { | ||
repeated string keys = 1; | ||
bytes value = 2; | ||
google.protobuf.Timestamp event_time = 3; | ||
google.protobuf.Timestamp watermark = 4; | ||
map<string, string> headers = 5; | ||
// This ID is used uniquely identify a map request | ||
string id = 6; | ||
} | ||
|
||
/** | ||
* MapResponse represents a response element. | ||
*/ | ||
message BatchMapResponse { | ||
message Result { | ||
repeated string keys = 1; | ||
bytes value = 2; | ||
repeated string tags = 3; | ||
} | ||
repeated Result results = 1; | ||
// This ID is used to refer the responses to the request it corresponds to. | ||
string id = 2; | ||
} | ||
|
||
/** | ||
* ReadyResponse is the health check result. | ||
*/ | ||
message ReadyResponse { | ||
bool ready = 1; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.