Documentation ¶
Index ¶
- func GetBackend(c context.T, wg *sync.WaitGroup, L1, L2 *ratel.T) (es store.I)
- type B
- type Backend
- func (b *Backend) Close() (err E)
- func (b *Backend) CountEvents(c context.T, f *filter.T) (count N, approx bool, err E)
- func (b *Backend) DeleteEvent(c context.T, eid *eventid.T) (err E)
- func (b *Backend) Init(path S) (err E)
- func (b *Backend) QueryEvents(c context.T, f *filter.T) (ch event.Ts, err E)
- func (b *Backend) SaveEvent(c context.T, ev *event.T) (err E)
- type Ctx
- type E
- type N
- type S
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Backend ¶
Backend is a hybrid badger/badger eventstore where L1 will have GC enabled and L2 will not. This is mainly for testing, as both are local.
func (*Backend) Close ¶
Close the connection to the database. IC is a request/response API authing at each request.
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.
required params are address, canister ID and the badger event store size limit (which can be 0)
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.