function

package
v0.0.0-...-dceaa68 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package function implements the main logic of the function

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(req []byte) string

Handle a serverless request

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.

Jump to

Keyboard shortcuts

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