Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 }
RegisteredFunction represents a function that has been registered with the registry.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry is a registry of functions.
func (*Registry) GetRegisteredFunction ¶
func (r *Registry) GetRegisteredFunction(name string) (RegisteredFunction, bool)
GetRegisteredFunction a registered function by name
func (*Registry) RegisterCloudEvent ¶
func (r *Registry) RegisterCloudEvent(name string, fn func(context.Context, cloudevents.Event) error) error
RegistryCloudEvent a CloudEvent function with a given name
func (*Registry) RegisterHTTP ¶
RegisterHTTP a HTTP function with a given name
Click to show internal directories.
Click to hide internal directories.