Building FunctionGraph Event Functions with Go from scratch¶
FunctionGraph Go libraries¶
The FunctionGraph Go runtime SDK provides the following libraries to help you develop Go event functions:
github.com/opentelekomcloud-community/otc-functiongraph-go-runtime/go-runtime/go-api/context
This library provides the Context structure, which contains the runtime information of the function and provides methods to obtain the runtime information.
github.com/opentelekomcloud-community/otc-functiongraph-go-runtime/go-runtime/pkg/runtime
This library provides the Handler interface, which defines the method that must be implemented by a function handler.
github.com/opentelekomcloud-community/otc-functiongraph-go-runtime/go-runtime/events
This library provides type definitions for common event source integrations.
OpenTelekomCloud community provides following libraries for Go development:
The community edition of OTC SDK for API signing in Go provides utility methods to handle request signing.