Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MigrateCaches ¶
func MigrateCaches(c interface{}, get func() interface{})
MigrateCaches sets target fields to get() result.
func MigrateTables ¶
MigrateTables sets target fields to database tables.
Types ¶
type IteratedReader ¶ added in v0.1.2
type IteratedReader struct {
// contains filtered or unexported fields
}
func (*IteratedReader) Get ¶ added in v0.1.2
func (t *IteratedReader) Get(key []byte) ([]byte, error)
func (*IteratedReader) NewIterator ¶ added in v0.1.2
func (t *IteratedReader) NewIterator(itPrefix []byte, start []byte) kvdb.Iterator
type Readonly ¶
type Readonly struct { IteratedReader // contains filtered or unexported fields }
Readonly table wraper of the underling DB, so all the table's data is stored with a prefix in underling DB.
func NewReadonly ¶
func NewReadonly(db kvdb.ReadonlyStore, prefix []byte) *Readonly
func (*Readonly) GetSnapshot ¶ added in v0.1.5
func (*Readonly) NewReadonlyTable ¶
Click to show internal directories.
Click to hide internal directories.