Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DebugFlag enables node debugging DebugFlag = cli.BoolFlag{ Name: "debug", Aliases: []string{"d"}, Usage: "Enables node debugging", Value: false, } // VerbosityFlag cli service settings VerbosityFlag = cli.StringFlag{ Name: "verbosity", Aliases: []string{"v"}, Usage: "Supports levels crit (silent) to trce (trace)", Value: log.LvlInfo.String(), } // DataDirFlag DataDirFlag = cli.StringFlag{ Name: "datadir", Usage: "Data directory for the database", } // PortFlag Set network listening port PortFlag = cli.UintFlag{ Name: "port", Aliases: []string{"p"}, Usage: "Set network listening port", Value: 9000, } // HostAddrFlag node listening hostname HostAddrFlag = cli.StringFlag{ Name: "addr", Aliases: []string{"a"}, Usage: "Node listening hostname", Value: "0.0.0.0", } // GenesisFlag Path to genesis JSON file GenesisFlag = cli.StringFlag{ Name: "genesis", Usage: "Path to genesis JSON file", } // RolesFlag role of the node (0 = no network, 1 = full node, ...) RolesFlag = cli.StringFlag{ Name: "roles", Usage: "Roles of the gossamer node", } // ProtocolIDFlag Set protocol id ProtocolIDFlag = cli.StringFlag{ Name: "protocol", Usage: "Set protocol id", } // NoBootstrapFlag Disables network bootstrapping NoBootstrapFlag = cli.BoolFlag{ Name: "nobootstrap", Usage: "Disables network bootstrapping (mdns still enabled)", } // RPCEnabledFlag Enable the HTTP-RPC RPCEnabledFlag = cli.BoolFlag{ Name: "rpc", Usage: "Enable the HTTP-RPC server", } // RPCHostFlag HTTP-RPC server listening hostname RPCHostFlag = cli.StringFlag{ Name: "rpchost", Usage: "HTTP-RPC server listening hostname", } // RPCPortFlag HTTP-RPC server listening port RPCPortFlag = cli.IntFlag{ Name: "rpcport", Usage: "HTTP-RPC server listening port", } // GenerateFlag Generate a new keypair GenerateFlag = cli.BoolFlag{ Name: "generate", Usage: "Generate a new keypair. If type is not specified, defaults to sr25519", } // Ed25519Flag Specify account type ed25519 Ed25519Flag = cli.BoolFlag{ Name: "ed25519", Usage: "Specify account type as ed25519", } // Sr25519Flag Specify account type sr25519 Sr25519Flag = cli.BoolFlag{ Name: "sr25519", Usage: "Specify account type as sr25519", } // Secp256k1Flag Specify account type secp256k1 Secp256k1Flag = cli.BoolFlag{ Name: "secp256k1", Usage: "Specify account type as secp256k1", } )
Functions ¶
func GetHostAddr ¶
func GetHostAddr(ctx *cli.Context) string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.