Documentation
¶
Index ¶
Constants ¶
View Source
const RPCUserAgent = "ditatombot/0.0.2 (Monero RPC Monitoring; https://github.com/ditatompel/xmr-remote-nodes)"
Variables ¶
View Source
var ProbeCmd = &cobra.Command{ Use: "probe", Short: "Probe remote nodes", Run: func(cmd *cobra.Command, args []string) { prober := newProber() if e, _ := cmd.Flags().GetString("endpoint"); e != "" { prober.SetEndpoint(e) } if t, _ := cmd.Flags().GetBool("no-tor"); t { prober.SetAcceptTor(false) } if t, _ := cmd.Flags().GetBool("no-i2p"); t { prober.SetAcceptI2P(false) } if err := prober.Run(); err != nil { switch err.(type) { case errProber: slog.Error(fmt.Sprintf("[PROBE] %s", err.Error())) os.Exit(1) default: slog.Warn(fmt.Sprintf("[PROBE] %s", err.Error())) } } }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.