Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetAppConfig ¶ added in v0.2.0
func SetAppConfig(config Config)
Types ¶
type CASPConfig ¶ added in v0.2.0
type CASPConfig struct {
URL string
VaultID string
TendermintPublicKey string
EthereumPublicKey string
SignatureWaitTime time.Duration
APIToken string
AllowConcurrentKeyUsage bool
}
func NewCASPConfig ¶ added in v0.2.0
func NewCASPConfig() CASPConfig
type Config ¶
type Config struct {
Kafka KafkaConfig
Tendermint TendermintConfig
Ethereum EthereumConfig
CASP CASPConfig
RPCEndpoint string
// contains filtered or unexported fields
}
func GetAppConfig ¶ added in v0.2.0
func GetAppConfig() *Config
type EthereumConfig ¶
func NewEthereumConfig ¶
func NewEthereumConfig() EthereumConfig
func (EthereumConfig) Validate ¶ added in v0.2.0
func (config EthereumConfig) Validate() error
Validate :panics if config is not valid
type KafkaConfig ¶
type KafkaConfig struct {
// Brokers: List of brokers to run kafka cluster
Brokers []string
TopicDetail sarama.TopicDetail
ToEth TopicConsumer
ToTendermint TopicConsumer
// Time for each unbonding transactions 3 days => input nano-seconds 259200000000000
EthUnbondCycleTime time.Duration
}
func NewKafkaConfig ¶
func NewKafkaConfig() KafkaConfig
func (KafkaConfig) Validate ¶ added in v0.2.0
func (config KafkaConfig) Validate() error
Validate :panics if config is not valid
type TendermintConfig ¶
func NewTendermintConfig ¶
func NewTendermintConfig() TendermintConfig
func (TendermintConfig) Validate ¶ added in v0.2.0
func (config TendermintConfig) Validate() error
Validate :panics if config is not valid
Click to show internal directories.
Click to hide internal directories.