package
0.6.2
Repository: https://github.com/celestiaorg/go-header.git
Documentation: pkg.go.dev

# Functions

DefaultParameters returns the default params to configure the store.
Init ensures a Store is initialized.
NewStore constructs a Store over datastore.
NewStoreWithHead initiates a new Store and forcefully sets a given trusted header as head.
NewTestStore creates initialized and started in memory header Store which is useful for testing.
WithIndexCacheSize is a functional option that configures the `IndexCacheSize` parameter.
WithMetrics enables metrics on the Store.
WithParams is a functional option that overrides Parameters.
WithStoreCacheSize is a functional option that configures the `StoreCacheSize` parameter.
WithStorePrefix is a functional option that configures the storePrefix parameter.
WithWriteBatchSize is a functional option that configures the `WriteBatchSize` parameter.

# Structs

Parameters is the set of parameters that must be configured for the store.
Store implements the Store interface for Headers over Datastore.

# Type aliases

Option is the functional option that is applied to the store instance to configure store parameters.