Documentation ¶
Index ¶
- type Backend
- func (b *Backend) Close()
- func (b *Backend) CountEvents(c context.T, f *filter.T) (count int, err error)
- func (b *Backend) DeleteEvent(c context.T, evt *event.T) (err error)
- func (b *Backend) Init(inf *relayinfo.T, params ...string) (err error)
- func (b *Backend) QueryEvents(c context.T, C chan *event.T, f *filter.T) (err error)
- func (b *Backend) SaveEvent(c context.T, ev *event.T) (err 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 { // Badger backend must be populated Badger *badger.Backend IC *agent.Backend }
func (*Backend) CountEvents ¶
CountEvents returns the number of events found matching the filter.
func (*Backend) DeleteEvent ¶
DeleteEvent removes an event from the event store.
func (*Backend) Init ¶
Init sets up the badger event store and connects to the configured IC canister.
func (*Backend) QueryEvents ¶
QueryEvents searches for events that match a filter and returns them asynchronously over a provided channel.
Click to show internal directories.
Click to hide internal directories.