Documentation ¶
Index ¶
Constants ¶
View Source
const LoggerTag = "FEED"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Feed ¶
type Feed struct {
// contains filtered or unexported fields
}
Feed sets prices from origins to the Feedable nodes.
type Feedable ¶
type Feedable interface { nodes.Node // OriginPair returns the origin and pair which are acceptable for // this Node. OriginPair() nodes.OriginPair // Ingest sets the Price for this Node. It may return error if // the OriginPrice contains incompatible origin or pair. Ingest(price nodes.OriginPrice) error // MinTTL is the amount of time during which the Price shouldn't be updated. MinTTL() time.Duration // MaxTTL is the maximum amount of time during which the Price can be used. // After that time, the Price method will return a OriginPrice with // a ErrPriceTTLExpired error. MaxTTL() time.Duration // Expired returns true if the Price is expired. This is based on the MaxTTL // value. Expired() bool // Price returns the Price assigned in the Ingest method. If the Price is // expired then a ErrPriceTTLExpired error will be set in // the OriginPrice.Error field. Price() nodes.OriginPrice }
Click to show internal directories.
Click to hide internal directories.