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 can record metrics.

Parameters

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

Returns

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