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