You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/03/14 19:36:51 UTC
[GitHub] sciabarracom opened a new pull request #70: adding start library for easy implementation of Go actions
sciabarracom opened a new pull request #70: adding start library for easy implementation of Go actions
URL: https://github.com/apache/incubator-openwhisk-client-go/pull/70
there is only one file, start.go providing the whisk.Start and whisk.StartWithArgs functions.
Those are helpers to implement Golang based actions as provided by the openwhisk-runtime-go
Basically they let you to define an action as
func action(event json.RawMessage) (json.RawMessage, error)
and create a main as
func main() { whisk.Start(action) }
or
func main(args []string) { whisk.StartWithArgs(action, args[1:]) }
the last one is a useful helper to try the function from the command line and make it compatible with the current docker skeleton.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services