Documentation
¶
Index ¶
- Variables
- 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 ¶
View Source
var BatchFilled = errors.New("batch-filled")
Functions ¶
This section is empty.
Types ¶
type BadgerBackend ¶
type BadgerBackend struct {
Path string
MaxLimit int
// Experimental
SkipIndexingTag func(event *nostr.Event, tagName string, tagValue string) bool
// Experimental
IndexLongerTag func(event *nostr.Event, tagName string, tagValue string) bool
*badger.DB
// contains filtered or unexported fields
}
func (*BadgerBackend) Close ¶
func (b *BadgerBackend) Close()
func (*BadgerBackend) CountEvents ¶
func (*BadgerBackend) DeleteEvent ¶
func (*BadgerBackend) Init ¶
func (b *BadgerBackend) Init() error
func (*BadgerBackend) QueryEvents ¶
func (*BadgerBackend) Serial ¶
func (b *BadgerBackend) Serial() []byte
Click to show internal directories.
Click to hide internal directories.