Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chain ¶
type Chain struct { BlockChain int64 `json:"BlockChain"` TxStore bool `json:"TxStore"` BlockStore bool `json:"BlockStore"` ReceiptStore bool `json:"ReceiptStore"` SubStore bool `json:"SubStore"` BackupTxStore bool `json:"BackupTxStore"` KafkaCfg map[string]*KafkaConfig `json:"Kafka"` ClickhouseDb *ClickhouseChainDb `json:"ChainDb"` Redis *Redis `json:"Redis"` }
type ClickhouseBaseDb ¶
type ClickhouseChainDb ¶
type ClickhouseChainDb struct { Addr string `json:"Addr"` Port int `json:"Port"` User string `json:"User"` Password string `json:"Password"` DbName string `json:"DbName"` TxTable string `json:"TxTable"` BlockTable string `json:"BlockTable"` ReceiptTable string `json:"ReceiptTable"` SubTxTable string `json:"SubTxTable"` BackupTxTable string `json:"BackupTxTable"` }
type Config ¶
type Config struct { RootPath string `json:"RootPath"` Port int `json:"Port"` LogLevel int `json:"LogLevel"` Chains []*Chain `json:"Chains"` BaseDb *ClickhouseBaseDb `json:"BaseDb"` }
func LoadConfig ¶
type KafkaConfig ¶
Click to show internal directories.
Click to hide internal directories.