Documentation
¶
Index ¶
Constants ¶
View Source
const LoggerTag = "FEED"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// DataModels is a list of data models handled by the Feed.
DataModels []string
// DataProvider is a data provider which is used to fetch data points.
DataProvider datapoint.Provider
// Signers is a list of signers used to sign data points.
//
// If none of the provided signers can sign the data point, it will be
// skipped.
Signers []datapoint.Signer
// Transport is an implementation of transport used to send data points to
// the network.
Transport transport.Service
// Interval describes how often data points should be sent to the network.
Interval *timeutil.Ticker
// Logger is a current logger interface used by the Feed.
// If nil, null logger will be used.
Logger log.Logger
}
Config is the configuration for the Feed.
Click to show internal directories.
Click to hide internal directories.