Documentation
¶
Overview ¶
Package funcframework is a Functions Framework implementation for Go. It allows you to register HTTP and event functions, then start an HTTP server serving those functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterEventFunction ¶
func RegisterEventFunction(path string, fn interface{})
RegisterEventFunction registers fn as an event function. The function must have two arguments, a context.Context and a struct type depending on the event, and return an error. If fn has the wrong signature, RegisterEventFunction panics.
func RegisterHTTPFunction ¶
func RegisterHTTPFunction(path string, fn interface{})
RegisterHTTPFunction registers fn as an HTTP function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.