pebble

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDB

func NewDB(dataDir string, cache, handles int, namespace string) (*pebble.DB, error)

Types

type ContentStorage

type ContentStorage struct {
	// contains filtered or unexported fields
}

func (*ContentStorage) Close

func (c *ContentStorage) Close() error

func (*ContentStorage) Get

func (c *ContentStorage) Get(contentKey []byte, contentId []byte) ([]byte, error)

Get implements storage.ContentStorage.

func (*ContentStorage) Put

func (c *ContentStorage) Put(contentKey []byte, contentId []byte, content []byte) error

Put implements storage.ContentStorage.

func (*ContentStorage) Radius

func (c *ContentStorage) Radius() *uint256.Int

Radius implements storage.ContentStorage.

Jump to

Keyboard shortcuts

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