persistent

package
v0.0.0-...-904bf0a Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2025 License: MIT Imports: 7 Imported by: 0

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

Jump to

Keyboard shortcuts

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