Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PluginConfig ¶
type PluginConfig struct {
RawServerURL string `json:"serverURL" toml:"serverURL"`
ServerPubKey utils.PlainHexBytes `json:"serverPubKey" toml:"serverPubKey"`
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"`
}
func (PluginConfig) ServerURL ¶
func (p PluginConfig) ServerURL() string
func (*PluginConfig) Unmarshal ¶ added in v2.13.1
func (p *PluginConfig) Unmarshal(data []byte) error
func (PluginConfig) Validate ¶
func (p PluginConfig) Validate() (merr error)
Click to show internal directories.
Click to hide internal directories.