Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCloudEvent ¶
Registers a CloudEvent function with a given name
func RegisterHTTP ¶
Registers a HTTP function with a given name
Types ¶
type RegisteredFunction ¶
type RegisteredFunction struct {
Name string // The name of the function
CloudEventFn func(context.Context, cloudevents.Event) error // Optional: The user's CloudEvent function
HTTPFn func(http.ResponseWriter, *http.Request) // Optional: The user's HTTP function
}
A declaratively registered function
func GetRegisteredFunction ¶
func GetRegisteredFunction(name string) (RegisteredFunction, bool)
Gets a registered function by name
Click to show internal directories.
Click to hide internal directories.