NewDefaultProtobufStore
No overview available.
def NewDefaultProtobufStore(
store: RawStore,
scope: promutils.Scope
) - > DefaultProtobufStore
Creates a new DefaultProtobufStore instance, initializing it with the provided raw store and Prometheus scope for metrics. This function is used to set up a protobuf store with default metric collection.
Parameters
| Name | Type | Description |
|---|---|---|
| store | RawStore | The underlying raw data store that the protobuf store will use for data persistence. |
| scope | promutils.Scope | The Prometheus scope used to create and register metrics for the protobuf store's operations. |
Returns
| Type | Description |
|---|---|
DefaultProtobufStore | A new instance of DefaultProtobufStore configured with the given raw store and metrics. |