Skip to content

Commit e79f3ee

Browse files
committed
base impl
1 parent 39db25b commit e79f3ee

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

context/context.go

+6
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ type Context interface {
200200

201201
// GetInputName return the inputName of the event
202202
GetInputName() string
203+
204+
GetDaprClient() dapr.Client
203205
}
204206

205207
type Out interface {
@@ -417,6 +419,10 @@ func (ctx *FunctionContext) Send(outputName string, data []byte) ([]byte, error)
417419
return nil, nil
418420
}
419421

422+
func (ctx *FunctionContext) GetDaprClient() dapr.Client {
423+
return ctx.daprClient
424+
}
425+
420426
func (ctx *FunctionContext) HasInputs() bool {
421427
if len(ctx.GetInputs()) > 0 {
422428
return true

0 commit comments

Comments
 (0)