Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // URLFlag is the CLI flag for root URL(s) for fetching randomness. URLFlag = &cli.StringSliceFlag{ Name: "url", Usage: "root URL(s) for fetching randomness", Aliases: []string{"http-failover"}, } // GRPCConnectFlag is the CLI flag for host:port to dial a gRPC randomness // provider. GRPCConnectFlag = &cli.StringFlag{ Name: "grpc-connect", Usage: "host:port to dial a gRPC randomness provider", Aliases: []string{"connect"}, } // CertFlag is the CLI flag for the path to a file containing gRPC transport // credentials of peer. CertFlag = &cli.StringFlag{ Name: "cert", Usage: "Path to a file containing gRPC transport credentials of peer", } // HashFlag is the CLI flag for the hash (in hex) of the targeted chain. HashFlag = &cli.StringFlag{ Name: "hash", Usage: "The hash (in hex) of the chain to follow", Aliases: []string{"chain-hash"}, } // HashListFlag is the CLI flag for the hashes list (in hex) for the relay to follow. HashListFlag = &cli.StringSliceFlag{ Name: "hash-list", Usage: "Specify one hash in the list (in hex) of hashes the relay should follow", } // GroupConfFlag is the CLI flag for specifying the path to the drand group configuration (TOML encoded) or chain info (JSON encoded). GroupConfFlag = &cli.PathFlag{ Name: "group-conf", Usage: "Path to a drand group configuration (TOML encoded) or chain info (JSON encoded)," + " can be used instead of `-hash` flag to verify the chain.", } // InsecureFlag is the CLI flag to allow autodetection of the chain // information. InsecureFlag = &cli.BoolFlag{ Name: "insecure", Usage: "Allow autodetection of the chain information", } // RelayFlag is the CLI flag for relay peer multiaddr(s) to connect with. RelayFlag = &cli.StringSliceFlag{ Name: "relay", Usage: "relay peer multiaddr(s) to connect with", } // PortFlag is the CLI flag for local address for client to bind to, when // connecting to relays. (specified as a numeric port, or a host:port) PortFlag = &cli.StringFlag{ Name: "port", Usage: "Local (host:)port for constructed libp2p host to listen on", } // JSONFlag is the value of the CLI flag `json` enabling JSON output of the loggers JSONFlag = &cli.BoolFlag{ Name: "json", Usage: "Set the output as json format", } )
View Source
var ClientFlags = []cli.Flag{ URLFlag, GRPCConnectFlag, CertFlag, HashFlag, GroupConfFlag, InsecureFlag, RelayFlag, PortFlag, JSONFlag, }
ClientFlags is a list of common flags for client creation
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.