core

package
v0.0.0-...-1ea01e4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommitInfoKeyFmt = "s/%d" // s/<version>
	LatestVersionKey = "s/latest"
)

Variables

View Source
var ErrStoreNotFound = errors.New("store not found")

Functions

This section is empty.

Types

type ReadonlyStore

type ReadonlyStore struct {
	db.DB
	// contains filtered or unexported fields
}

func NewReadonlyStore

func NewReadonlyStore(dbPath string) (*ReadonlyStore, error)

func (*ReadonlyStore) CommitInfoByName

func (rs *ReadonlyStore) CommitInfoByName() map[string]*store.CommitInfo

func (*ReadonlyStore) LatestTree

func (rs *ReadonlyStore) LatestTree(storeKey string) (db.DB, *iavl.MutableTree, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL