Skip to main content

NewDefaultProtobufStoreWithMetrics

No overview available.

def NewDefaultProtobufStoreWithMetrics(
store: RawStore,
metrics: *protoMetrics
) - > DefaultProtobufStore

Creates a new DefaultProtobufStore instance, associating it with a raw store and metrics for tracking operations. This function is used to initialize a protobuf store that will report metrics.

Parameters

NameTypeDescription
storeRawStoreThe underlying raw data store that the DefaultProtobufStore will use for data persistence.
metrics*protoMetricsA pointer to the metrics object used to record and track operations performed by the protobuf store.

Returns

TypeDescription
DefaultProtobufStoreA new DefaultProtobufStore instance configured with the provided raw store and metrics.