Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PluginConfig ¶
type PluginConfig struct {
ChannelDefinitionsContractAddress common.Address `json:"channelDefinitionsContractAddress" toml:"channelDefinitionsContractAddress"`
ChannelDefinitionsContractFromBlock int64 `json:"channelDefinitionsContractFromBlock" toml:"channelDefinitionsContractFromBlock"`
// NOTE: ChannelDefinitions is an override.
// If ChannelDefinitions is specified, values for
// ChannelDefinitionsContractAddress and
// ChannelDefinitionsContractFromBlock will be ignored
ChannelDefinitions string `json:"channelDefinitions" toml:"channelDefinitions"`
// BenchmarkMode is a flag to enable benchmarking mode. In this mode, the
// transmitter will not transmit anything at all and instead emit
// logs/metrics.
BenchmarkMode bool `json:"benchmarkMode" toml:"benchmarkMode"`
// KeyBundleIDs maps supported keys to their respective bundle IDs
// Key must match llo's ReportFormat
KeyBundleIDs map[string]string `json:"keyBundleIDs" toml:"keyBundleIDs"`
DonID uint32 `json:"donID" toml:"donID"`
// Mercury servers
Servers map[string]hex.PlainHexBytes `json:"servers" toml:"servers"`
Transmitters []TransmitterConfig `json:"transmitters" toml:"transmitters"`
}
func (PluginConfig) GetServers ¶
func (p PluginConfig) GetServers() (servers []mercuryconfig.Server)
func (*PluginConfig) Unmarshal ¶
func (p *PluginConfig) Unmarshal(data []byte) error
func (PluginConfig) Validate ¶
func (p PluginConfig) Validate() (merr error)
type TransmitterConfig ¶
type TransmitterConfig struct {
Type TransmitterType `json:"type" toml:"type"`
// each sub-transmitter can have its own specific configuration
Opts json.RawMessage `json:"opts" toml:"opts"`
}
type TransmitterType ¶
type TransmitterType int
const (
TransmitterTypeCRE TransmitterType = iota
)
func (TransmitterType) String ¶
func (t TransmitterType) String() string
func (*TransmitterType) UnmarshalText ¶
func (t *TransmitterType) UnmarshalText(text []byte) error
Click to show internal directories.
Click to hide internal directories.