slicestore

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SliceStore

type SliceStore struct {
	MaxLimit int
	// contains filtered or unexported fields
}

func (*SliceStore) Close

func (b *SliceStore) Close()

func (*SliceStore) CountEvents

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

func (*SliceStore) DeleteEvent

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

func (*SliceStore) Init

func (b *SliceStore) Init() error

func (*SliceStore) QueryEvents

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

func (*SliceStore) SaveEvent

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