Documentation ¶
Index ¶
- func LoadYamlAsViper(configfile string) *viper.Viper
- type ACCConfig
- type Config
- type ConsoleLogConfig
- type DBConfig
- type DebugConfig
- type FileLogConfig
- type GenesisConfig
- type LogConfig
- type MetricsConfig
- type P2PConfig
- type RPCConfig
- type SnapshotConfig
- type TokenInfo
- type VMConfig
- type VersionConfig
- type Witness
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadYamlAsViper ¶
LoadYamlAsViper load yaml file as viper object
Types ¶
type Config ¶
type Config struct { ACC *ACCConfig Genesis string VM *VMConfig DB *DBConfig Snapshot *SnapshotConfig P2P *P2PConfig RPC *RPCConfig Log *LogConfig Metrics *MetricsConfig Debug *DebugConfig Version *VersionConfig NativeToken string }
Config provide all configuration for the application
type ConsoleLogConfig ¶
ConsoleLogConfig is the config for consolewriter of ilog.
type DebugConfig ¶
type DebugConfig struct {
ListenAddr string
}
DebugConfig is the config of debug.
type FileLogConfig ¶
FileLogConfig is the config for filewriter of ilog.
type GenesisConfig ¶
type GenesisConfig struct { CreateGenesis bool InitialTimestamp string TokenInfo *TokenInfo WitnessInfo []*Witness ContractPath string AdminInfo *Witness FoundationInfo *Witness }
GenesisConfig config of the genesis bloc
type LogConfig ¶
type LogConfig struct { FileLog *FileLogConfig ConsoleLog *ConsoleLogConfig AsyncWrite bool EnableContractLog bool }
LogConfig is the config of ilog.
type MetricsConfig ¶
MetricsConfig is the config of metrics.
type P2PConfig ¶
type P2PConfig struct { ListenAddr string SeedNodes []string ChainID uint32 Version uint16 DataPath string InboundConn int OutboundConn int BlackPID []string BlackIP []string AdminPort string }
P2PConfig is the config for p2p network.
type RPCConfig ¶
type RPCConfig struct { Enable bool GatewayAddr string GRPCAddr string AllowOrigins []string TryTx bool ExecTx bool }
RPCConfig is the config for RPC Server.
type SnapshotConfig ¶
SnapshotConfig is the config of snapshot
type VersionConfig ¶
VersionConfig contrains netname(mainnet / testnet etc) and protocol info
Click to show internal directories.
Click to hide internal directories.