badger

package
v0.0.0-...-ab4a54a Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: Unlicense Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadgerBackend

type BadgerBackend struct {
	Path     string
	MaxLimit int

	*badger.DB
	// contains filtered or unexported fields
}

func (BadgerBackend) Close

func (b BadgerBackend) Close()

func (BadgerBackend) CountEvents

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

func (*BadgerBackend) DeleteEvent

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

func (*BadgerBackend) Init

func (b *BadgerBackend) Init() error

func (BadgerBackend) QueryEvents

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

func (*BadgerBackend) SaveEvent

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

func (BadgerBackend) Serial

func (b BadgerBackend) Serial() []byte

Jump to

Keyboard shortcuts

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