type.gno
0.57 Kb ยท 16 lines
1package feed
2
3// Type indicates the type of a feed.
4type Type int
5
6const (
7 // TypeStatic indicates a feed cannot be changed once the first value is committed.
8 TypeStatic Type = iota
9 // TypeContinuous indicates a feed can continuously ingest values and will publish
10 // a new value on request using the values it has ingested.
11 TypeContinuous
12 // TypePeriodic indicates a feed can accept one or more values within a certain period
13 // and will proceed to commit these values at the end up each period to produce an
14 // aggregate value before starting a new period.
15 TypePeriodic
16)