Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

feed source pure

Constants 1

const TypeStatic, TypeContinuous, TypePeriodic

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

Variables 1

Types 3

type Task

interface
1type Task interface {
2	MarshalJSON() ([]byte, error)
3}
source

Task is a unit of work that can be part of a `Feed` definition. Tasks are executed by agents.

type Type

ident
1type Type int
source

Type indicates the type of a feed.

type Value

struct
1type Value struct {
2	String string
3	Time   time.Time
4}
source

Value represents a value published by a feed. The `Time` is when the value was published.

Imports 2

  • errors stdlib
  • time stdlib

Source Files 5