Closed tpiperatgod closed 3 years ago
SendTo
method to use the HTTP to send data uniformly.
if ctx.Runtime == Dapr {
pattern := strings.Trim(op.Pattern, "/")
_, err = doHttpRequest(op.ReqMethod, pattern, applicationJson, strings.NewReader(string(body)))
}
What this PR do
Support Dapr gRPC protocol The function
registerOpenFunction
can now support to register Dapr gRPC methods via dapr/go-sdk.Follow up
Signed-off-by: laminar fangtian@kubesphere.io