bluge

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlugeBackend

type BlugeBackend struct {
	// Path is where the index will be saved
	Path string

	// RawEventStore is where we'll fetch the raw events from
	// bluge will only store ids, so the actual events must be somewhere else
	RawEventStore eventstore.Store
	// contains filtered or unexported fields
}

func (*BlugeBackend) Close

func (b *BlugeBackend) Close()

func (*BlugeBackend) DeleteEvent

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

func (*BlugeBackend) Init

func (b *BlugeBackend) Init() error

func (*BlugeBackend) QueryEvents

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

func (*BlugeBackend) SaveEvent

func (b *BlugeBackend) 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