Skip to content

Commit

Permalink
base impl
Browse files Browse the repository at this point in the history
  • Loading branch information
Mershab99 committed Jun 5, 2024
1 parent 39db25b commit e79f3ee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ type Context interface {

// GetInputName return the inputName of the event
GetInputName() string

GetDaprClient() dapr.Client
}

type Out interface {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e79f3ee

Please sign in to comment.