lmdb

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: Unlicense Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DB_VERSION byte = 'v'
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LMDBBackend

type LMDBBackend struct {
	Path     string
	MaxLimit int
	MapSize  int64
	// contains filtered or unexported fields
}

func (*LMDBBackend) Close

func (b *LMDBBackend) Close()

func (*LMDBBackend) CountEvents

func (b *LMDBBackend) CountEvents(ctx context.Context, filter nostr.Filter) (int64, error)

func (*LMDBBackend) DeleteEvent

func (b *LMDBBackend) DeleteEvent(ctx context.Context, evt *nostr.Event) error

func (*LMDBBackend) Init

func (b *LMDBBackend) Init() error

func (*LMDBBackend) QueryEvents

func (b *LMDBBackend) QueryEvents(ctx context.Context, filter nostr.Filter) (chan *nostr.Event, error)

func (*LMDBBackend) SaveEvent

func (b *LMDBBackend) SaveEvent(ctx context.Context, evt *nostr.Event) error

func (*LMDBBackend) Serial

func (b *LMDBBackend) Serial() []byte

Jump to

Keyboard shortcuts

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