Skip to main content

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​

NameTypeDescription
storeRawStoreThe underlying raw data store that the protobuf store will use for data persistence.
scopepromutils.ScopeThe Prometheus scope used to create and register metrics for the protobuf store's operations.

Returns​

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