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