0x41gawor / lupus

Lupus - design and run loops in Kubernetes. Part of my Master Thesis
0 stars 0 forks source link

GoFunc as new Action Destination #14

Closed 0x41gawor closed 3 days ago

0x41gawor commented 1 week ago
0x41gawor commented 3 days ago

First we need to design the func signature.

It will be used in Action Send. Let's review it.

actions:
  - name: sample
    type: send
    send: 
      inputKey: "elo"
      outputKey: "elo"
      destination:
         type: goFunc
         goFunc: 
           name:

And ok, signature can be derived from this pic: image

So the signature is goint to be

func(input interface{}) (interface{}, error)