Event Functions¶
Event functions can be configured with event triggers and integrate a variety of products (such as object storage service OBS, distributed messaging service RabbitMQ version, cloud log service LTS, etc.).
Types of Event Functions in Go¶
You can build FunctionGraph event functions in Go in the following ways:
Note
The option Select template is not supported for event functions written in Go.
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-events
This library provides type definitions for common event source integrations.
Open Telekom Cloud 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.
Event Triggers¶
Both methods support trigger events.
For available trigger events, see Overview of Trigger Events.