Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockTask ¶
type BlockTask struct { FromCluster []*FromCluster `json:"FromCluster"` Kafka *Kafka `json:"Kafka"` }
func (*BlockTask) CopyBlockTask ¶
type Chain ¶
type Chain struct { //Etcd *Etcd `json:"Etcd"` BlockChainName string `json:"BlockChainName"` BlockChainCode int `json:"BlockChainCode"` //NodeWeight int `json:"NodeWeight"` PullReceipt bool `json:"PullReceipt"` PullTx bool `json:"PullTx"` Kafka *Kafka `json:"Kafka"` //结果数据Kafka TaskKafka *Kafka `json:"TaskKafka"` //任务kafka BlockTask *BlockTask `json:"BlockTask"` TxTask *TxTask `json:"TxTask"` ReceiptTask *ReceiptTask `json:"ReceiptTask"` Redis *Redis `json:"Redis"` }
type Config ¶
type Config struct { Chains []*Chain `json:"Chains"` LogConfig *LogConfig `json:"Log"` KeyPath string `json:"KeyPath"` }
func LoadConfig ¶
type FromCluster ¶
type FromCluster struct { Host string `json:"Host"` Port int `json:"Port"` Key string `json:"Key"` Weight int64 `json:"Weight"` ErrorCount int64 `json:"ErrorCount"` }
func (*FromCluster) CopyFromCluster ¶
func (f *FromCluster) CopyFromCluster() FromCluster
type Kafka ¶
type ReceiptTask ¶
type ReceiptTask struct { FromCluster []*FromCluster `json:"FromCluster"` Kafka *Kafka `json:"Kafka"` }
func (*ReceiptTask) CopyReceiptTask ¶
func (b *ReceiptTask) CopyReceiptTask() ReceiptTask
type TxTask ¶
type TxTask struct { FromCluster []*FromCluster `json:"FromCluster"` Kafka *Kafka `json:"Kafka"` }
func (*TxTask) CopyTxTask ¶
Click to show internal directories.
Click to hide internal directories.