mirror of
https://github.com/scroll-tech/scroll.git
synced 2026-01-09 14:08:03 -05:00
Co-authored-by: maskpp <maskpp266@gmail.com> Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com> Co-authored-by: HAOYUatHZ <HAOYUatHZ@users.noreply.github.com>
31 lines
628 B
Go
31 lines
628 B
Go
package app
|
|
|
|
import "github.com/urfave/cli/v2"
|
|
|
|
var (
|
|
apiFlags = []cli.Flag{
|
|
// http flags
|
|
&httpEnabledFlag,
|
|
&httpListenAddrFlag,
|
|
&httpPortFlag,
|
|
}
|
|
// 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: 8390,
|
|
}
|
|
)
|