(ctx context.Context, ce cloudevents.Event)
| 38 | } |
| 39 | |
| 40 | func foo(ctx context.Context, ce cloudevents.Event) error { |
| 41 | vars := ofctx.VarsFromCtx(ctx) |
| 42 | response := map[string]string{ |
| 43 | string(ce.Data()): vars["name"], |
| 44 | } |
| 45 | responseBytes, _ := json.Marshal(response) |
| 46 | klog.Infof("cloudevent - Data: %s", string(responseBytes)) |
| 47 | return nil |
| 48 | } |
| 49 | |
| 50 | func bar(ctx ofctx.Context, in []byte) (ofctx.Out, error) { |
| 51 | vars := ofctx.VarsFromCtx(ctx.GetNativeContext()) |
nothing calls this directly
no outgoing calls
no test coverage detected