Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BullyConfig ¶
type CoinmarketcapConfig ¶
type MpcRelayerConfig ¶
type MpcRelayerConfig struct {
TopologyConfiguration TopologyConfiguration
Port uint16
Key string
CommHealthCheckInterval time.Duration
}
type RawBullyConfig ¶
type RawBullyConfig struct {
PingWaitTime string `mapstructure:"PingWaitTime" json:"pingWaitTime" default:"1s"`
PingBackOff string `mapstructure:"PingBackOff" json:"pingBackOff" default:"1s"`
PingInterval string `mapstructure:"PingInterval" json:"pingInterval" default:"1s"`
ElectionWaitTime string `mapstructure:"ElectionWaitTime" json:"electionWaitTime" default:"2s"`
BullyWaitTime string `mapstructure:"BullyWaitTime" json:"bullyWaitTime" default:"3m"`
}
type RawMpcRelayerConfig ¶
type RawMpcRelayerConfig struct {
Key string `mapstructure:"Key" json:"key"`
Port string `mapstructure:"Port" json:"port" default:"9000"`
TopologyConfiguration TopologyConfiguration `mapstructure:"TopologyConfiguration" json:"topologyConfiguration"`
CommHealthCheckInterval string `mapstructure:"CommHealthCheckInterval" json:"commHealthCheckInterval" default:"5m"`
}
type RawRelayerConfig ¶
type RawRelayerConfig struct {
OpenTelemetryCollectorURL string `mapstructure:"OpenTelemetryCollectorURL" json:"opentelemetryCollectorURL"`
LogLevel string `mapstructure:"LogLevel" json:"logLevel" default:"info"`
LogFile string `mapstructure:"LogFile" json:"logFile" default:"out.log"`
HealthPort string `mapstructure:"HealthPort" json:"healthPort" default:"9001"`
Env string `mapstructure:"Env" json:"env"`
Id string `mapstructure:"Id" json:"id"`
MpcConfig RawMpcRelayerConfig `mapstructure:"MpcConfig" json:"mpcConfig"`
BullyConfig RawBullyConfig `mapstructure:"BullyConfig" json:"bullyConfig"`
CoinmarketcapConfig CoinmarketcapConfig `mapstructure:"CoinmarketcapConfig" json:"coinmarketcapConfig"`
SolverConfig SolverConfig `mapstructure:"SolverConfig" json:"solverConfig"`
ApiAddr string `mapstructure:"apiAddr" default:"0.0.0.0:3000"`
}
func (*RawRelayerConfig) Validate ¶
func (c *RawRelayerConfig) Validate() error
type RelayerConfig ¶
type RelayerConfig struct {
OpenTelemetryCollectorURL string
LogLevel zerolog.Level
LogFile string
HealthPort uint16
Env string
Id string
MpcConfig MpcRelayerConfig
BullyConfig BullyConfig
CoinmarketcapConfig CoinmarketcapConfig
SolverConfig SolverConfig
ApiAddr string
}
func NewRelayerConfig ¶
func NewRelayerConfig(rawConfig RawRelayerConfig) (RelayerConfig, error)
NewRelayerConfig parses RawRelayerConfig into RelayerConfig
type SolverConfig ¶ added in v0.2.0
type TopologyConfiguration ¶
Click to show internal directories.
Click to hide internal directories.