opensearch

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Unlicense Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IndexedEvent

type IndexedEvent struct {
	Event         nostr.Event `json:"event"`
	ContentSearch string      `json:"content_search"`
}

type OpensearchStorage

type OpensearchStorage struct {
	URL       string
	IndexName string
	Insecure  bool
	// contains filtered or unexported fields
}

func (*OpensearchStorage) Close

func (oss *OpensearchStorage) Close()

func (*OpensearchStorage) CountEvents

func (oss *OpensearchStorage) CountEvents(ctx context.Context, filter nostr.Filter) (int64, error)

func (*OpensearchStorage) DeleteEvent

func (oss *OpensearchStorage) DeleteEvent(ctx context.Context, evt *nostr.Event) error

func (*OpensearchStorage) Init

func (oss *OpensearchStorage) Init() error

func (*OpensearchStorage) QueryEvents

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

func (*OpensearchStorage) SaveEvent

func (oss *OpensearchStorage) 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