Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // CommonFlags is used for app common flags in different modules CommonFlags = []cli.Flag{ &ConfigFileFlag, &HTTPEnabledFlag, &HTTPListenAddrFlag, &HTTPPortFlag, &verbosityFlag, &logFileFlag, &logJSONFormat, &logDebugFlag, &MetricsEnabled, &MetricsAddr, &MetricsPort, } // ConfigFileFlag load json type config file. ConfigFileFlag = cli.StringFlag{ Name: "config", Usage: "JSON configuration file.", Value: "./conf/config.json", } // HTTPEnabledFlag enable rpc server. HTTPEnabledFlag = cli.BoolFlag{ Name: "http", Usage: "Enable the HTTP-RPC server.", Value: false, } // HTTPListenAddrFlag set the http address. HTTPListenAddrFlag = cli.StringFlag{ Name: "http.addr", Usage: "HTTP-RPC server listening interface.", Value: "localhost", } // HTTPPortFlag set http.port. HTTPPortFlag = cli.IntFlag{ Name: "http.port", Usage: "HTTP-RPC server listening port.", Value: 8750, } // MetricsEnabled enable metrics collection and reporting MetricsEnabled = cli.BoolFlag{ Name: "metrics", Usage: "Enable metrics collection and reporting.", Category: "METRICS", Value: false, } // MetricsAddr is listening address of Metrics reporting server MetricsAddr = cli.StringFlag{ Name: "metrics.addr", Usage: "Metrics reporting server listening address.", Category: "METRICS", Value: "127.0.0.1", } // MetricsPort is listening port of Metrics reporting server MetricsPort = cli.IntFlag{ Name: "metrics.port", Usage: "Metrics reporting server listening port.", Category: "METRICS", Value: 6060, } )
View Source
var Version = fmt.Sprintf("%s-%s", tag, commit)
Version denotes the version of paymaster.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.