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
| Name | Type | Description |
|---|---|---|
| store | RawStore | The underlying raw data store that the DefaultProtobufStore will use for data persistence. |
| metrics | *protoMetrics | A pointer to the metrics object used to record and track operations performed by the protobuf store. |
Returns
| Type | Description |
|---|---|
DefaultProtobufStore | A new DefaultProtobufStore instance configured with the provided raw store and metrics. |