ingester.gno
0.39 Kb · 11 lines
1package gnorkle
2
3import "gno.land/p/demo/gnorkle/ingester"
4
5// Ingester is the abstraction that allows a `Feed` to ingest data from agents
6// and commit it to storage using zero or more intermediate aggregation steps.
7type Ingester interface {
8 Type() ingester.Type
9 Ingest(value, providerAddress string) (canAutoCommit bool, err error)
10 CommitValue(storage Storage, providerAddress string) error
11}