bolt

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: 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 BoltBackend

type BoltBackend struct {
	Path     string
	MaxLimit int
	// contains filtered or unexported fields
}

func (*BoltBackend) Close

func (b *BoltBackend) Close()

func (*BoltBackend) CountEvents

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

func (*BoltBackend) DeleteEvent

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

func (*BoltBackend) Init

func (b *BoltBackend) Init() error

func (*BoltBackend) QueryEvents

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

func (*BoltBackend) SaveEvent

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

Jump to

Keyboard shortcuts

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