Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PersistentType ¶
type PersistentType string
const ( Memory PersistentType = "memory" File PersistentType = "file" Badgerdb PersistentType = "badgerdb" Pebbledb PersistentType = "pebbledb" )
type PersistentWrapper ¶
type PersistentWrapper struct {
*block.BlockWrapper
// contains filtered or unexported fields
}
func New ¶
func New(ptype PersistentType, path string) (*PersistentWrapper, error)
func (*PersistentWrapper) Close ¶
func (p *PersistentWrapper) Close() error
func (*PersistentWrapper) Datastore ¶
func (p *PersistentWrapper) Datastore() ds.Datastore
Datastore returns the underlying datastore for advanced usage
Click to show internal directories.
Click to hide internal directories.