Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrefixDb ¶
type PrefixDb interface { Get(ctx context.Context, key []byte) ([]byte, error) Put(ctx context.Context, key []byte, val []byte) error }
PrefixDb interface abstracts the database operations.
type SubPrefixDb ¶
type SubPrefixDb struct {
// contains filtered or unexported fields
}
func NewSubPrefixDb ¶
func NewSubPrefixDb(store db.Db, pfx []byte) *SubPrefixDb
Click to show internal directories.
Click to hide internal directories.