Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/ProspectOne/perfops-cli
/ functions
Functions
177 in github.com/ProspectOne/perfops-cli
⨍
Functions
177
◇
Types & classes
41
↓ 33 callers
Function
dummyResp
(status int, method, body string)
perfops/client_test.go:95
↓ 22 callers
Function
newTestClient
(tr roundTripper)
perfops/client_test.go:59
↓ 16 callers
Method
IsFinished
IsFinished returns a value indicating whether the run result is complete or not.
perfops/run.go:364
↓ 16 callers
Method
Printf
Printf prints the arguments to the formatters writer.
cmd/internal/runtest.go:287
↓ 11 callers
Function
newTestPerfopsClient
(tr roundTripper)
cmd/root_test.go:217
↓ 10 callers
Function
chkRunError
(err error)
cmd/root.go:124
↓ 10 callers
Method
do
(req *http.Request, v interface{})
perfops/client.go:142
↓ 9 callers
Function
cmpError
(a, b error)
perfops/run_test.go:702
↓ 9 callers
Function
newPerfOpsClient
newPerfOpsClient returns a perfops.Client object initialized with the API key.
cmd/root.go:104
↓ 8 callers
Method
StopSpinner
StopSpinner stops the spinner.
cmd/internal/runtest.go:282
↓ 8 callers
Function
initRootCmd
()
cmd/root.go:86
↓ 7 callers
Function
addCommonFlags
Common Flags for almost all tests we have
cmd/root.go:96
↓ 7 callers
Function
isValidTarget
isValidTarget checks if a string is a valid target, i.e., a public domain name or an IP address.
perfops/run.go:410
↓ 7 callers
Function
reqBody
(req *http.Request)
cmd/root_test.go:231
↓ 7 callers
Function
requireTarget
requireTarget returns an error if no target is specified.
cmd/root.go:115
↓ 6 callers
Function
PrintOutputJSON
PrintOutputJSON marshals the output into JSON and prints the JSON.
cmd/internal/runtest.go:257
↓ 6 callers
Method
SetOutput
SetOutput sets the output and the error.
cmd/internal/runtest.go:339
↓ 6 callers
Method
Start
Start will start the indicator.
cmd/internal/spinner.go:48
↓ 6 callers
Method
StartSpinner
StartSpinner starts the spinner.
cmd/internal/runtest.go:277
↓ 6 callers
Method
Stop
Stop will stop the indicator.
cmd/internal/spinner.go:75
↓ 6 callers
Method
doPostRunRequest
(ctx context.Context, path string, runReq *RunRequest)
perfops/run.go:435
↓ 5 callers
Method
Flush
()
cmd/internal/runtest.go:35
↓ 5 callers
Function
NewSpinner
NewSpinner returns a spinner.
cmd/internal/spinner.go:36
↓ 5 callers
Function
RunTest
RunTest runs an MTR or ping test retrieves its output and presents it to the user.
cmd/internal/runtest.go:61
↓ 5 callers
Function
isValidLimit
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 callers
Method
Error
()
cmd/root_test.go:158
↓ 4 callers
Function
NewClient
NewClient returns a new Client given an API key and options.
perfops/client.go:109
↓ 4 callers
Function
NewFormatter
NewFormatter returns a new Formatter
cmd/internal/runtest.go:267
↓ 4 callers
Method
doGetRunOutput
(ctx context.Context, path string, testID TestID)
perfops/run.go:463
↓ 4 callers
Function
newJSONReader
(v interface{})
perfops/client.go:172
↓ 4 callers
Function
reqBody
(req *http.Request)
perfops/run_test.go:706
↓ 3 callers
Method
Curl
Curl runs a curl request.
perfops/run.go:325
↓ 3 callers
Method
DNSPerf
DNSPerf finds the time it takes to resolve a DNS record.
perfops/run.go:240
↓ 3 callers
Method
DNSResolve
DNSResolve resolves a DNS record.
perfops/run.go:281
↓ 3 callers
Function
PrintOutput
PrintOutput prints run items that have been data.
cmd/internal/runtest.go:209
↓ 3 callers
Method
ResolveOutput
ResolveOutput returns the unmarshalled output for DNS resolve requests.
perfops/run.go:396
↓ 3 callers
Function
WithHTTPClient
WithHTTPClient sets the HTTP client for the API client.
perfops/client.go:98
↓ 3 callers
Function
invalidArgHelp
(name string)
cmd/root.go:138
↓ 2 callers
Method
CurlOutput
CurlOutput returns the full curl output under a test ID.
perfops/run.go:354
↓ 2 callers
Method
DNSPerfOutput
DNSPerfOutput returns the full DNS perf output under a test ID.
perfops/run.go:272
↓ 2 callers
Method
DNSResolveOutput
DNSResolveOutput returns the full DNS resolve output under a test ID.
perfops/run.go:316
↓ 2 callers
Method
DoRequest
(req *http.Request, v interface{})
perfops/client.go:127
↓ 2 callers
Method
Error
Error returns the stirng representaiton of the error.
perfops/run.go:146
↓ 2 callers
Method
IsFinished
IsFinished returns a value indicating whether the whole output is complete or not.
perfops/run.go:376
↓ 2 callers
Method
IsFinished
IsFinished returns a value indicating whether the whole output is complete or not.
perfops/run.go:382
↓ 2 callers
Function
IsUnauthorized
IsUnauthorized returns a value indicating whether the error is an authorization error.
perfops/client.go:82
↓ 2 callers
Method
LatencyOutput
LatencyOutput returns the full latency output under a test ID.
perfops/run.go:205
↓ 2 callers
Method
Output
Output retruns the output and the error.
cmd/internal/runtest.go:347
↓ 2 callers
Function
OutputToFile
OutputToFile Outputs perfops response to a file or multiple files if more than one check is being ran.
cmd/internal/runtest.go:128
↓ 2 callers
Method
PerfOutput
PerfOutput returns the unmarshalled output for DNS perf requests.
perfops/run.go:387
↓ 2 callers
Method
PingOutput
PingOutput returns the full ping output under a test ID.
perfops/run.go:225
↓ 2 callers
Method
RemainingCredits
RemainingCredits retrieves the ramining credits from the server.
perfops/dns.go:28
↓ 2 callers
Method
Step
Step advances the animation frame by one.
cmd/internal/spinner.go:87
↓ 2 callers
Function
WithAPIKey
WithAPIKey sets the API key for the API client.
perfops/client.go:90
↓ 2 callers
Method
erase
()
cmd/internal/spinner.go:108
↓ 2 callers
Function
fmtShortUsage
(f *flag.Flag)
cmd/root.go:156
↓ 2 callers
Function
formatFileName
formatFileName Returns a file name based on provided string and number
cmd/internal/runtest.go:117
↓ 2 callers
Function
initCreditsCmd
(parentCmd *cobra.Command)
cmd/credits.go:42
↓ 2 callers
Function
initCurlCmd
(parentCmd *cobra.Command)
cmd/curl.go:50
↓ 2 callers
Function
initDNSPerfCmd
(parentCmd *cobra.Command)
cmd/dnsperf.go:48
↓ 2 callers
Function
initDNSResolveCmd
(parentCmd *cobra.Command)
cmd/dnsresolve.go:49
↓ 2 callers
Function
initLatencyCmd
(parentCmd *cobra.Command)
cmd/latency.go:45
↓ 2 callers
Function
initListCmd
(parentCmd *cobra.Command)
cmd/list.go:37
↓ 2 callers
Function
initMTRCmd
(parentCmd *cobra.Command)
cmd/mtr.go:45
↓ 2 callers
Function
initPingCmd
(parentCmd *cobra.Command)
cmd/ping.go:45
↓ 2 callers
Function
initTracerouteCmd
(parentCmd *cobra.Command)
cmd/traceroute.go:45
↓ 2 callers
Function
newTestFormatter
(w io.Writer, printID bool)
cmd/internal/runtest_test.go:173
↓ 2 callers
Method
next
()
cmd/internal/spinner.go:101
↓ 2 callers
Function
printPartialDNSOutput
(printf func(format string, a ...interface{}) (n int, err error), output *perfops.DNSTestOutput, printedIDs ma
cmd/dnsresolve.go:117
↓ 2 callers
Function
runCredits
(c *perfops.Client)
cmd/credits.go:46
↓ 2 callers
Function
runCurl
(c *perfops.Client, target string, head, insecure, http2 bool, from string, nodeIDs []int, limit int, fileOut
cmd/curl.go:63
↓ 2 callers
Function
runDNSPerf
(c *perfops.Client, target, dnsServer, from string, nodeIDs []int, limit int, ipv6 bool)
cmd/dnsperf.go:58
↓ 2 callers
Function
runDNSResolve
(c *perfops.Client, target, queryType, dnsServer, from string, nodeIDs []int, limit int)
cmd/dnsresolve.go:62
↓ 2 callers
Function
runLatency
(c *perfops.Client, target, from string, nodeIDs []int, limit int, ipv6 bool)
cmd/latency.go:52
↓ 2 callers
Function
runListCmd
(c *perfops.Client, dataType string)
cmd/list.go:41
↓ 2 callers
Function
runMTR
(c *perfops.Client, target, from string, nodeIDs []int, limit int, ipv6 bool)
cmd/mtr.go:52
↓ 2 callers
Function
runPing
(c *perfops.Client, target, from string, nodeIDs []int, limit int, ipv6 bool)
cmd/ping.go:52
↓ 2 callers
Function
runTraceroute
(c *perfops.Client, target, from string, nodeIDs []int, limit int, ipv6 bool)
cmd/traceroute.go:52
↓ 1 callers
Method
ArgName
()
perfops/run.go:159
↓ 1 callers
Function
Execute
Execute executes the root command.
cmd/root.go:72
↓ 1 callers
Method
IsUnauthorized
()
perfops/client.go:77
↓ 1 callers
Method
Latency
Latency runs a latency test.
perfops/run.go:200
↓ 1 callers
Method
MTR
MTR runs an MTR test.
perfops/run.go:210
↓ 1 callers
Method
MTROutput
MTROutput returns the full MTR output under a test ID.
perfops/run.go:215
↓ 1 callers
Method
MarshalJSON
MarshalJSON returns the JSON encoding of NodeIDs, e.g., a comma separated list.
perfops/run.go:167
↓ 1 callers
Method
Ping
Ping runs a ping test.
perfops/run.go:220
↓ 1 callers
Method
Traceroute
Traceroute runs a traceroute test.
perfops/run.go:230
↓ 1 callers
Method
TracerouteOutput
TracerouteOutput returns the full traceroute output under a test ID.
perfops/run.go:235
↓ 1 callers
Function
closeBody
(res *http.Response)
perfops/client.go:180
↓ 1 callers
Function
cmpError
(a, b error)
cmd/root_test.go:209
↓ 1 callers
Method
current
()
cmd/internal/spinner.go:93
↓ 1 callers
Function
delete_version
(base_url, version)
hack/prune-pkgs.rb:33
↓ 1 callers
Function
dummyReq
(method string)
perfops/client_test.go:91
↓ 1 callers
Function
get_pkgs
(base_url, pkgs_url)
hack/prune-pkgs.rb:14
↓ 1 callers
Function
get_versions
(base_url, version_url)
hack/prune-pkgs.rb:20
↓ 1 callers
Function
prune_pkgs
(base_url, pkgs_url)
hack/prune-pkgs.rb:43
↓ 1 callers
Function
runCitiesCmd
(c *perfops.Client)
cmd/list_cities.go:10
↓ 1 callers
Function
runCountriesCmd
(c *perfops.Client)
cmd/list_countries.go:10
↓ 1 callers
Function
termSize
()
cmd/internal/terminal.go:15
↓ 1 callers
Function
termStartOfRow
(w io.Writer)
cmd/internal/terminal.go:32
next →
1–100 of 177, ranked by callers