Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Flags = []cli.Flag{
&cli.StringFlag{
Name: "chain-id",
Usage: "to ensure all nodes matches the specific network (dismiss to auto-detected)",
},
&cli.StringFlag{
Name: "http-addr",
Usage: "http server address",
Value: ":8080",
},
&cli.StringFlag{
Name: "log-level",
Usage: "log level (debug, info, warn, error)",
Value: "info",
},
&cli.StringFlag{
Name: "namespace",
Usage: "namespace for Prometheus metrics",
Value: "cosmos_validator_watcher",
},
&cli.BoolFlag{
Name: "no-color",
Usage: "disable colored output",
},
&cli.StringSliceFlag{
Name: "node",
Usage: "rpc node endpoint to connect to (specify multiple for high availability)",
Value: cli.NewStringSlice("http://localhost:26657"),
},
&cli.BoolFlag{
Name: "no-staking",
Usage: "disable calls to staking module (useful for consumer chains)",
},
&cli.StringSliceFlag{
Name: "validator",
Usage: "validator address(es) to track (use :my-label to add a custom label in metrics & ouput)",
},
}
Functions ¶
Types ¶
type HTTPServer ¶
type HTTPServer struct {
// contains filtered or unexported fields
}
func NewHTTPServer ¶
func NewHTTPServer(addr string, readyFn Probe) *HTTPServer
func (*HTTPServer) Run ¶
func (s *HTTPServer) Run() error
Click to show internal directories.
Click to hide internal directories.