MCPcopy
hub / github.com/dapr/dapr / NewGRPCStateStore

Function NewGRPCStateStore

pkg/components/state/pluggable.go:642–644  ·  view source on GitHub ↗

NewGRPCStateStore creates a new grpc state store using the given socket factory.

(l logger.Logger, socket string)

Source from the content-addressed store, hash-verified

640
641// NewGRPCStateStore creates a new grpc state store using the given socket factory.
642func NewGRPCStateStore(l logger.Logger, socket string) *grpcStateStore {
643 return fromConnector(l, pluggable.NewGRPCConnector(socket, newStateStoreClient))
644}
645
646// newGRPCStateStore creates a new state store for the given pluggable component.
647func newGRPCStateStore(dialer pluggable.GRPCConnectionDialer) func(l logger.Logger) state.Store {

Callers

nothing calls this directly

Calls 2

NewGRPCConnectorFunction · 0.92
fromConnectorFunction · 0.70

Tested by

no test coverage detected