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