Documentation ¶
Overview ¶
Package function implements the main logic of the function
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunActivities ¶
func RunActivities(ctx context.Context, inputs map[string]*data.Attribute) (map[string]*data.Attribute, error)
RunActivities is where the magic happens. This is where you get the input from any event that might trigger your OpenFaaS function in a map called evt (which is part of the inputs). The below sample, will simply return "Go Serverless v1.x! Your function executed successfully!" as a response.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.