package
0.7.1
Repository: https://github.com/openfaas/connector-sdk.git
Documentation: pkg.go.dev

# README

tester example

Test and emit to the "payment.received" topic

go build
export PASSWORD="Your gateway password"
./tester \
    -username=admin \
    -password=$PASSWORD

Deploy an example function to be triggered by the topic:

faas-cli store deploy printer --annotation topic=payment.received

Emit a custom topic:

go build
export PASSWORD="Your gateway password"

./tester \
    -username=admin \
    -password=$PASSWORD \
    -topic "custom/topic/1"

Deploy an example function to be triggered by the topic:

faas-cli store deploy printer --annotation topic=custom/topic/1

# Structs

ResponseReceiver enables connector to receive results from the function invocation.