MCPcopy Index your code

hub / github.com/ProspectOne/perfops-cli / functions

Functions177 in github.com/ProspectOne/perfops-cli

↓ 33 callersFunctiondummyResp
(status int, method, body string)
perfops/client_test.go:95
↓ 22 callersFunctionnewTestClient
(tr roundTripper)
perfops/client_test.go:59
↓ 16 callersMethodIsFinished
IsFinished returns a value indicating whether the run result is complete or not.
perfops/run.go:364
↓ 16 callersMethodPrintf
Printf prints the arguments to the formatters writer.
cmd/internal/runtest.go:287
↓ 11 callersFunctionnewTestPerfopsClient
(tr roundTripper)
cmd/root_test.go:217
↓ 10 callersFunctionchkRunError
(err error)
cmd/root.go:124
↓ 10 callersMethoddo
(req *http.Request, v interface{})
perfops/client.go:142
↓ 9 callersFunctioncmpError
(a, b error)
perfops/run_test.go:702
↓ 9 callersFunctionnewPerfOpsClient
newPerfOpsClient returns a perfops.Client object initialized with the API key.
cmd/root.go:104
↓ 8 callersMethodStopSpinner
StopSpinner stops the spinner.
cmd/internal/runtest.go:282
↓ 8 callersFunctioninitRootCmd
()
cmd/root.go:86
↓ 7 callersFunctionaddCommonFlags
Common Flags for almost all tests we have
cmd/root.go:96
↓ 7 callersFunctionisValidTarget
isValidTarget checks if a string is a valid target, i.e., a public domain name or an IP address.
perfops/run.go:410
↓ 7 callersFunctionreqBody
(req *http.Request)
cmd/root_test.go:231
↓ 7 callersFunctionrequireTarget
requireTarget returns an error if no target is specified.
cmd/root.go:115
↓ 6 callersFunctionPrintOutputJSON
PrintOutputJSON marshals the output into JSON and prints the JSON.
cmd/internal/runtest.go:257
↓ 6 callersMethodSetOutput
SetOutput sets the output and the error.
cmd/internal/runtest.go:339
↓ 6 callersMethodStart
Start will start the indicator.
cmd/internal/spinner.go:48
↓ 6 callersMethodStartSpinner
StartSpinner starts the spinner.
cmd/internal/runtest.go:277
↓ 6 callersMethodStop
Stop will stop the indicator.
cmd/internal/spinner.go:75
↓ 6 callersMethoddoPostRunRequest
(ctx context.Context, path string, runReq *RunRequest)
perfops/run.go:435
↓ 5 callersMethodFlush
()
cmd/internal/runtest.go:35
↓ 5 callersFunctionNewSpinner
NewSpinner returns a spinner.
cmd/internal/spinner.go:36
↓ 5 callersFunctionRunTest
RunTest runs an MTR or ping test retrieves its output and presents it to the user.
cmd/internal/runtest.go:61
↓ 5 callersFunctionisValidLimit
isValidLimit retruns a value indicating whether the limit is valid, e.g., for requests without an API key the limit is capped at 20.
perfops/run.go:431
↓ 4 callersMethodError
()
cmd/root_test.go:158
↓ 4 callersFunctionNewClient
NewClient returns a new Client given an API key and options.
perfops/client.go:109
↓ 4 callersFunctionNewFormatter
NewFormatter returns a new Formatter
cmd/internal/runtest.go:267
↓ 4 callersMethoddoGetRunOutput
(ctx context.Context, path string, testID TestID)
perfops/run.go:463
↓ 4 callersFunctionnewJSONReader
(v interface{})
perfops/client.go:172
↓ 4 callersFunctionreqBody
(req *http.Request)
perfops/run_test.go:706
↓ 3 callersMethodCurl
Curl runs a curl request.
perfops/run.go:325
↓ 3 callersMethodDNSPerf
DNSPerf finds the time it takes to resolve a DNS record.
perfops/run.go:240
↓ 3 callersMethodDNSResolve
DNSResolve resolves a DNS record.
perfops/run.go:281
↓ 3 callersFunctionPrintOutput
PrintOutput prints run items that have been data.
cmd/internal/runtest.go:209
↓ 3 callersMethodResolveOutput
ResolveOutput returns the unmarshalled output for DNS resolve requests.
perfops/run.go:396
↓ 3 callersFunctionWithHTTPClient
WithHTTPClient sets the HTTP client for the API client.
perfops/client.go:98
↓ 3 callersFunctioninvalidArgHelp
(name string)
cmd/root.go:138
↓ 2 callersMethodCurlOutput
CurlOutput returns the full curl output under a test ID.
perfops/run.go:354
↓ 2 callersMethodDNSPerfOutput
DNSPerfOutput returns the full DNS perf output under a test ID.
perfops/run.go:272
↓ 2 callersMethodDNSResolveOutput
DNSResolveOutput returns the full DNS resolve output under a test ID.
perfops/run.go:316
↓ 2 callersMethodDoRequest
(req *http.Request, v interface{})
perfops/client.go:127
↓ 2 callersMethodError
Error returns the stirng representaiton of the error.
perfops/run.go:146
↓ 2 callersMethodIsFinished
IsFinished returns a value indicating whether the whole output is complete or not.
perfops/run.go:376
↓ 2 callersMethodIsFinished
IsFinished returns a value indicating whether the whole output is complete or not.
perfops/run.go:382
↓ 2 callersFunctionIsUnauthorized
IsUnauthorized returns a value indicating whether the error is an authorization error.
perfops/client.go:82
↓ 2 callersMethodLatencyOutput
LatencyOutput returns the full latency output under a test ID.
perfops/run.go:205
↓ 2 callersMethodOutput
Output retruns the output and the error.
cmd/internal/runtest.go:347
↓ 2 callersFunctionOutputToFile
OutputToFile Outputs perfops response to a file or multiple files if more than one check is being ran.
cmd/internal/runtest.go:128
↓ 2 callersMethodPerfOutput
PerfOutput returns the unmarshalled output for DNS perf requests.
perfops/run.go:387
↓ 2 callersMethodPingOutput
PingOutput returns the full ping output under a test ID.
perfops/run.go:225
↓ 2 callersMethodRemainingCredits
RemainingCredits retrieves the ramining credits from the server.
perfops/dns.go:28
↓ 2 callersMethodStep
Step advances the animation frame by one.
cmd/internal/spinner.go:87
↓ 2 callersFunctionWithAPIKey
WithAPIKey sets the API key for the API client.
perfops/client.go:90
↓ 2 callersMethoderase
()
cmd/internal/spinner.go:108
↓ 2 callersFunctionfmtShortUsage
(f *flag.Flag)
cmd/root.go:156
↓ 2 callersFunctionformatFileName
formatFileName Returns a file name based on provided string and number
cmd/internal/runtest.go:117
↓ 2 callersFunctioninitCreditsCmd
(parentCmd *cobra.Command)
cmd/credits.go:42
↓ 2 callersFunctioninitCurlCmd
(parentCmd *cobra.Command)
cmd/curl.go:50
↓ 2 callersFunctioninitDNSPerfCmd
(parentCmd *cobra.Command)
cmd/dnsperf.go:48
↓ 2 callersFunctioninitDNSResolveCmd
(parentCmd *cobra.Command)
cmd/dnsresolve.go:49
↓ 2 callersFunctioninitLatencyCmd
(parentCmd *cobra.Command)
cmd/latency.go:45
↓ 2 callersFunctioninitListCmd
(parentCmd *cobra.Command)
cmd/list.go:37
↓ 2 callersFunctioninitMTRCmd
(parentCmd *cobra.Command)
cmd/mtr.go:45
↓ 2 callersFunctioninitPingCmd
(parentCmd *cobra.Command)
cmd/ping.go:45
↓ 2 callersFunctioninitTracerouteCmd
(parentCmd *cobra.Command)
cmd/traceroute.go:45
↓ 2 callersFunctionnewTestFormatter
(w io.Writer, printID bool)
cmd/internal/runtest_test.go:173
↓ 2 callersMethodnext
()
cmd/internal/spinner.go:101
↓ 2 callersFunctionprintPartialDNSOutput
(printf func(format string, a ...interface{}) (n int, err error), output *perfops.DNSTestOutput, printedIDs ma
cmd/dnsresolve.go:117
↓ 2 callersFunctionrunCredits
(c *perfops.Client)
cmd/credits.go:46
↓ 2 callersFunctionrunCurl
(c *perfops.Client, target string, head, insecure, http2 bool, from string, nodeIDs []int, limit int, fileOut
cmd/curl.go:63
↓ 2 callersFunctionrunDNSPerf
(c *perfops.Client, target, dnsServer, from string, nodeIDs []int, limit int, ipv6 bool)
cmd/dnsperf.go:58
↓ 2 callersFunctionrunDNSResolve
(c *perfops.Client, target, queryType, dnsServer, from string, nodeIDs []int, limit int)
cmd/dnsresolve.go:62
↓ 2 callersFunctionrunLatency
(c *perfops.Client, target, from string, nodeIDs []int, limit int, ipv6 bool)
cmd/latency.go:52
↓ 2 callersFunctionrunListCmd
(c *perfops.Client, dataType string)
cmd/list.go:41
↓ 2 callersFunctionrunMTR
(c *perfops.Client, target, from string, nodeIDs []int, limit int, ipv6 bool)
cmd/mtr.go:52
↓ 2 callersFunctionrunPing
(c *perfops.Client, target, from string, nodeIDs []int, limit int, ipv6 bool)
cmd/ping.go:52
↓ 2 callersFunctionrunTraceroute
(c *perfops.Client, target, from string, nodeIDs []int, limit int, ipv6 bool)
cmd/traceroute.go:52
↓ 1 callersMethodArgName
()
perfops/run.go:159
↓ 1 callersFunctionExecute
Execute executes the root command.
cmd/root.go:72
↓ 1 callersMethodIsUnauthorized
()
perfops/client.go:77
↓ 1 callersMethodLatency
Latency runs a latency test.
perfops/run.go:200
↓ 1 callersMethodMTR
MTR runs an MTR test.
perfops/run.go:210
↓ 1 callersMethodMTROutput
MTROutput returns the full MTR output under a test ID.
perfops/run.go:215
↓ 1 callersMethodMarshalJSON
MarshalJSON returns the JSON encoding of NodeIDs, e.g., a comma separated list.
perfops/run.go:167
↓ 1 callersMethodPing
Ping runs a ping test.
perfops/run.go:220
↓ 1 callersMethodTraceroute
Traceroute runs a traceroute test.
perfops/run.go:230
↓ 1 callersMethodTracerouteOutput
TracerouteOutput returns the full traceroute output under a test ID.
perfops/run.go:235
↓ 1 callersFunctioncloseBody
(res *http.Response)
perfops/client.go:180
↓ 1 callersFunctioncmpError
(a, b error)
cmd/root_test.go:209
↓ 1 callersMethodcurrent
()
cmd/internal/spinner.go:93
↓ 1 callersFunctiondelete_version
(base_url, version)
hack/prune-pkgs.rb:33
↓ 1 callersFunctiondummyReq
(method string)
perfops/client_test.go:91
↓ 1 callersFunctionget_pkgs
(base_url, pkgs_url)
hack/prune-pkgs.rb:14
↓ 1 callersFunctionget_versions
(base_url, version_url)
hack/prune-pkgs.rb:20
↓ 1 callersFunctionprune_pkgs
(base_url, pkgs_url)
hack/prune-pkgs.rb:43
↓ 1 callersFunctionrunCitiesCmd
(c *perfops.Client)
cmd/list_cities.go:10
↓ 1 callersFunctionrunCountriesCmd
(c *perfops.Client)
cmd/list_countries.go:10
↓ 1 callersFunctiontermSize
()
cmd/internal/terminal.go:15
↓ 1 callersFunctiontermStartOfRow
(w io.Writer)
cmd/internal/terminal.go:32
next →1–100 of 177, ranked by callers