MCPcopy Create free account
hub / github.com/OpenFunction/samples / main

Function main

functions-framework/golang/Knative/cloudevents/main.go:13–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11)
12
13func main() {
14 ctx := context.Background()
15 fwk, err := framework.NewFramework()
16 if err != nil {
17 klog.Exit(err)
18 }
19 fwk.RegisterPlugins(getLocalPlugins())
20 if err := fwk.Register(ctx, userfunction.HelloWorld); err != nil {
21 klog.Exit(err)
22 }
23 if err := fwk.Start(ctx); err != nil {
24 klog.Exit(err)
25 }
26}
27
28func getLocalPlugins() map[string]plugin.Plugin {
29 localPlugins := map[string]plugin.Plugin{

Callers

nothing calls this directly

Calls 1

getLocalPluginsFunction · 0.70

Tested by

no test coverage detected