Documentation ¶
Index ¶
- Variables
- func NewLotusFullNodeRPCFromContext(cliCtx *cli.Context) (v1api.FullNode, jsonrpc.ClientCloser, error)
- func NewVenusFullNodeRPCFromContext(cliCtx *cli.Context) (v1.FullNode, jsonrpc.ClientCloser, error)
- func NewWalletFullRPCFromContext(cliCtx *cli.Context) (wallet.IFullAPI, jsonrpc.ClientCloser, error)
- func ReqContext(cctx *cli.Context) context.Context
- func RunPprof(ctx context.Context) error
- func SetLogLevel(level logrus.Level)
Constants ¶
This section is empty.
Variables ¶
View Source
var GasFeeCapFlag = &cli.StringFlag{
Name: "gasfeecap",
Usage: "eg. 1,1000000afil",
Value: "1000000afil",
}
View Source
var GasOverPremiumFlag = &cli.IntFlag{
Name: "gas-over-premium",
Value: 2,
}
View Source
var LotusTokenFlag = &cli.StringFlag{
Name: "lotus-token",
Value: "",
Usage: "lotus token",
}
View Source
var LotusURLFlag = &cli.StringFlag{
Name: "lotus-url",
Value: "wss://wss.node.glif.io/apigw/lotus",
Usage: "lotus url",
}
View Source
var VenusTokenFlag = &cli.StringFlag{
Name: "venus-token",
Value: "",
Usage: "venus token",
}
View Source
var VenusURLFlag = &cli.StringFlag{
Name: "venus-url",
Value: "https://api.node.glif.io",
Usage: "venus url",
}
https://api.node.glif.io https://api.calibration.node.glif.io
View Source
var WalletTokenFlag = &cli.StringFlag{
Name: "wallet-token",
Value: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJBbGxvdyI6WyJyZWFkIiwid3JpdGUiLCJzaWduIiwiYWRtaW4iXX0.3srJTfYDsn21xtX7LEAQNxzamWB4KcUukUMwmrM-8x4",
}
View Source
var WalletURLFlag = &cli.StringFlag{
Name: "wallet-url",
Value: "/ip4/127.0.0.1/tcp/5678",
}
Functions ¶
func ReqContext ¶
ReqContext returns context for cli execution. Calling it for the first time installs SIGTERM handler that will close returned context. Not safe for concurrent execution.
func SetLogLevel ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.