MCPcopy Create free account
hub / github.com/ProspectOne/perfops-cli / initLatencyCmd

Function initLatencyCmd

cmd/latency.go:45–50  ·  view source on GitHub ↗
(parentCmd *cobra.Command)

Source from the content-addressed store, hash-verified

43)
44
45func initLatencyCmd(parentCmd *cobra.Command) {
46 addCommonFlags(latencyCmd)
47 parentCmd.AddCommand(latencyCmd)
48 latencyCmd.Flags().IntVarP(&latencyLimit, "limit", "L", 1, "The maximum number of nodes to use")
49 latencyCmd.Flags().BoolVarP(&latencyIpv6, "ipv6", "6", false, "Use IPv6")
50}
51
52func runLatency(c *perfops.Client, target, from string, nodeIDs []int, limit int, ipv6 bool) error {
53 ctx := context.Background()

Callers 2

TestInitLatencyCmdFunction · 0.85
ExecuteFunction · 0.85

Calls 1

addCommonFlagsFunction · 0.85

Tested by 1

TestInitLatencyCmdFunction · 0.68