From e79f3ee3b57e83f36bd7add17ad17b6b7a0cf362 Mon Sep 17 00:00:00 2001 From: Mershab Issadien Date: Wed, 5 Jun 2024 01:30:24 -0500 Subject: [PATCH] base impl --- context/context.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/context/context.go b/context/context.go index a486410..d583ca2 100644 --- a/context/context.go +++ b/context/context.go @@ -200,6 +200,8 @@ type Context interface { // GetInputName return the inputName of the event GetInputName() string + + GetDaprClient() dapr.Client } type Out interface { @@ -417,6 +419,10 @@ func (ctx *FunctionContext) Send(outputName string, data []byte) ([]byte, error) return nil, nil } +func (ctx *FunctionContext) GetDaprClient() dapr.Client { + return ctx.daprClient +} + func (ctx *FunctionContext) HasInputs() bool { if len(ctx.GetInputs()) > 0 { return true