Documentation ¶
Index ¶
- type BlugeBackend
- func (b *BlugeBackend) Close()
- func (b *BlugeBackend) DeleteEvent(ctx context.Context, evt *nostr.Event) error
- func (b *BlugeBackend) Init() error
- func (b *BlugeBackend) QueryEvents(ctx context.Context, filter nostr.Filter) (chan *nostr.Event, error)
- func (b *BlugeBackend) SaveEvent(ctx context.Context, evt *nostr.Event) error
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)
Click to show internal directories.
Click to hide internal directories.