diff options
| author | SangTran-127 <tranquangsang12.7@gmail.com> | 2026-08-08 12:54:43 +0700 |
|---|---|---|
| committer | SangTran-127 <tranquangsang12.7@gmail.com> | 2026-08-08 12:54:43 +0700 |
| commit | acc0b6fbaace61a3befd7f726f9d80fb69391126 (patch) | |
| tree | 67a8ec8db2f0599cc2ae2a774c88c2cbf43da812 /transport/channel.go | |
| parent | 77a3b3e86b06504bdf37e35d83a192806a95a63e (diff) | |
| download | goflink-acc0b6fbaace61a3befd7f726f9d80fb69391126.tar.gz goflink-acc0b6fbaace61a3befd7f726f9d80fb69391126.zip | |
implement core transport and processing operators with receiver, emitter, filter, and map functionalities
Diffstat (limited to 'transport/channel.go')
| -rw-r--r-- | transport/channel.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/transport/channel.go b/transport/channel.go new file mode 100644 index 0000000..011f8ae --- /dev/null +++ b/transport/channel.go @@ -0,0 +1,13 @@ +package transport + +import "goflink/core" + +type Receiver[T any] interface { + Receive() (core.StreamRecord[T], bool) + Close() error +} + +type Emitter[T any] interface { + Emit(core.StreamRecord[T]) error + Close() error +} |