Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultTcpPort uint16 = 32323 TypeNotDefined = -1 TypeDocker = 0 TypeLocal = 1 TypeRemote = 2 TypeDeploy = 3 DirScript = "scripts" DirKeys = "keys" DirPnScript = "scripts_pn" DirPnKeys = "keys_pn" DirTestKeys = "keys_test" CNIpNetwork = "10.11.2" PNIpNetwork1 = "10.11.10" PNIpNetwork2 = "10.11.11" )
Variables ¶
View Source
var GrafanaFiles = [...]GrafanaFile{ { // contains filtered or unexported fields }, { // contains filtered or unexported fields }, }
View Source
var (
SetupCommand = cli.Command{
Name: "setup",
Usage: "Generate klaytn CN's init files",
Description: `This tool helps generate:
* Genesis Block (genesis.json)
* Static nodes for all CNs(Consensus Node)
* CN details
* Docker-compose
for Klaytn Consensus Node.
Args :
type : [local | remote | deploy | docker (default)]
`,
Action: gen,
Flags: []cli.Flag{
cypressTestFlag,
cypressFlag,
baobabTestFlag,
baobabFlag,
serviceChainFlag,
serviceChainTestFlag,
cliqueFlag,
numOfCNsFlag,
numOfValidatorsFlag,
numOfPNsFlag,
numOfENsFlag,
numOfSCNsFlag,
numOfSPNsFlag,
numOfSENsFlag,
numOfTestKeyFlag,
chainIDFlag,
serviceChainIDFlag,
unitPriceFlag,
deriveShaImplFlag,
fundingAddrFlag,
outputPathFlag,
dockerImageIdFlag,
fasthttpFlag,
networkIdFlag,
nografanaFlag,
useTxGenFlag,
txGenRateFlag,
txGenThFlag,
txGenConnFlag,
txGenDurFlag,
rpcPortFlag,
wsPortFlag,
p2pPortFlag,
dataDirFlag,
logDirFlag,
governanceFlag,
govModeFlag,
governingNodeFlag,
rewardMintAmountFlag,
rewardRatioFlag,
rewardGiniCoeffFlag,
rewardStakingFlag,
rewardProposerFlag,
rewardMinimumStakeFlag,
rewardDeferredTxFeeFlag,
istEpochFlag,
istProposerPolicyFlag,
istSubGroupFlag,
cliqueEpochFlag,
cliquePeriodFlag,
},
ArgsUsage: "type",
}
)
View Source
var Types = [4]string{"docker", "local", "remote", "deploy"}
Functions ¶
func RandStringRunes ¶
Types ¶
type GrafanaFile ¶
type GrafanaFile struct {
// contains filtered or unexported fields
}
type KlaytnConfig ¶
type KlaytnConfig struct { NetworkId int RPCPort int WSPort int P2PPort int DataDir string LogDir string RunDir string NodeType string }
func (KlaytnConfig) String ¶
func (k KlaytnConfig) String() string
type PrometheusConfig ¶
func NewPrometheusConfig ¶
func (PrometheusConfig) String ¶
func (pConfig PrometheusConfig) String() string
Click to show internal directories.
Click to hide internal directories.