even_odd

command
v0.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

README

EvenOdd

An example User Defined Function that checks if the input message is an integer, and returns it with even or odd key, otherwise drops it.

This can be used to demonstrate how to do Conditional Forwarding.

apiVersion: numaflow.numaproj.io/v1alpha1
kind: Pipeline
metadata:
  name: even-odd
spec:
  vertices:
    - name: in
      source:
        http: {}
    - name: even-or-odd
      udf:
        container:
          image: quay.io/numaio/go-even-odd-example
    - name: even-sink
      sink:
        log: {}
    - name: odd-sink
      sink:
        log: {}
  edges:
    - from: in
      to: even-or-odd
    - from: even-or-odd
      to: even-sink
      conditions:
        keyIn:
          - even
    - from: even-or-odd
      to: odd-sink
      conditions:
        keyIn:
          - odd

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL