Documentation ¶
Index ¶
- type BadgerBackend
- func (b BadgerBackend) Close()
- func (b BadgerBackend) CountEvents(ctx context.Context, filter nostr.Filter) (int64, error)
- func (b *BadgerBackend) DeleteEvent(ctx context.Context, evt *nostr.Event) error
- func (b *BadgerBackend) Init() error
- func (b BadgerBackend) QueryEvents(ctx context.Context, filter nostr.Filter) (chan *nostr.Event, error)
- func (b *BadgerBackend) SaveEvent(ctx context.Context, evt *nostr.Event) error
- func (b BadgerBackend) Serial() []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BadgerBackend ¶
type BadgerBackend struct { Path string MaxLimit int *badger.DB // contains filtered or unexported fields }
func (BadgerBackend) Close ¶
func (b BadgerBackend) Close()
func (BadgerBackend) CountEvents ¶
func (b BadgerBackend) CountEvents(ctx context.Context, filter nostr.Filter) (int64, error)
func (*BadgerBackend) DeleteEvent ¶
func (b *BadgerBackend) DeleteEvent(ctx context.Context, evt *nostr.Event) error
func (*BadgerBackend) Init ¶
func (b *BadgerBackend) Init() error
func (BadgerBackend) QueryEvents ¶
func (b BadgerBackend) QueryEvents(ctx context.Context, filter nostr.Filter) (chan *nostr.Event, error)
func (*BadgerBackend) SaveEvent ¶
func (b *BadgerBackend) SaveEvent(ctx context.Context, evt *nostr.Event) error
func (BadgerBackend) Serial ¶
func (b BadgerBackend) Serial() []byte
Source Files ¶
Click to show internal directories.
Click to hide internal directories.