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

Function newPerfOpsClient

cmd/root.go:104–106  ·  view source on GitHub ↗

newPerfOpsClient returns a perfops.Client object initialized with the API key.

()

Source from the content-addressed store, hash-verified

102// newPerfOpsClient returns a perfops.Client object initialized with the
103// API key.
104func newPerfOpsClient() (*perfops.Client, error) {
105 return perfops.NewClient(perfops.WithAPIKey(apiKey))
106}
107
108func initConfig() {
109 if apiKey == "" {

Callers 9

mtr.goFile · 0.85
ping.goFile · 0.85
credits.goFile · 0.85
dnsperf.goFile · 0.85
traceroute.goFile · 0.85
latency.goFile · 0.85
curl.goFile · 0.85
dnsresolve.goFile · 0.85
list.goFile · 0.85

Calls 2

NewClientFunction · 0.92
WithAPIKeyFunction · 0.92

Tested by

no test coverage detected