Documentation
¶
Index ¶
- Constants
- type BoltBackend
- func (b *BoltBackend) Close()
- func (b *BoltBackend) CountEvents(ctx context.Context, filter nostr.Filter) (int64, error)
- func (b *BoltBackend) DeleteEvent(ctx context.Context, evt *nostr.Event) error
- func (b *BoltBackend) Init() error
- func (b *BoltBackend) QueryEvents(ctx context.Context, filter nostr.Filter) (chan *nostr.Event, error)
- func (b *BoltBackend) SaveEvent(ctx context.Context, evt *nostr.Event) error
Constants ¶
View Source
const (
DB_VERSION byte = 'v'
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoltBackend ¶
func (*BoltBackend) Close ¶
func (b *BoltBackend) Close()
func (*BoltBackend) CountEvents ¶
func (b *BoltBackend) CountEvents(ctx context.Context, filter nostr.Filter) (int64, error)
func (*BoltBackend) DeleteEvent ¶
func (b *BoltBackend) DeleteEvent(ctx context.Context, evt *nostr.Event) error
func (*BoltBackend) Init ¶
func (b *BoltBackend) Init() error
func (*BoltBackend) QueryEvents ¶
func (b *BoltBackend) QueryEvents(ctx context.Context, filter nostr.Filter) (chan *nostr.Event, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.