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