func CloudEvent()

in functions/functions.go [24:28]


func CloudEvent(name string, fn func(context.Context, cloudevents.Event) error) {
	if err := registry.Default().RegisterCloudEvent(fn, registry.WithName(name)); err != nil {
		log.Fatalf("failure to register function: %s", err)
	}
}