MCPcopy
hub / github.com/dapr/dapr / NewGRPCConnector

Function NewGRPCConnector

pkg/components/pluggable/grpc.go:156–158  ·  view source on GitHub ↗

NewGRPCConnector creates a new grpc connector for the given client factory and socket file, using the default socket dialer.

(socket string, factory func(grpc.ClientConnInterface) TClient)

Source from the content-addressed store, hash-verified

154
155// NewGRPCConnector creates a new grpc connector for the given client factory and socket file, using the default socket dialer.
156func NewGRPCConnector[TClient GRPCClient](socket string, factory func(grpc.ClientConnInterface) TClient) *GRPCConnector[TClient] {
157 return NewGRPCConnectorWithDialer(socketDialer(socket), factory)
158}

Callers 11

TestComponentCallsFunction · 0.92
NewGRPCSecretStoreFunction · 0.92
TestComponentCallsFunction · 0.92
NewGRPCStateStoreFunction · 0.92
NewGRPCInputBindingFunction · 0.92
TestInputBindingCallsFunction · 0.92
NewGRPCOutputBindingFunction · 0.92
TestOutputBindingCallsFunction · 0.92
TestPubSubPluggableCallsFunction · 0.92
NewGRPCPubSubFunction · 0.92
TestGRPCConnectorFunction · 0.85

Calls 2

socketDialerFunction · 0.85

Tested by 6

TestComponentCallsFunction · 0.74
TestComponentCallsFunction · 0.74
TestInputBindingCallsFunction · 0.74
TestOutputBindingCallsFunction · 0.74
TestPubSubPluggableCallsFunction · 0.74
TestGRPCConnectorFunction · 0.68