MCPcopy Create free account
hub / github.com/archlinux-de/pkgstats-cli / NewClient

Function NewClient

internal/api/request/client.go:39–48  ·  view source on GitHub ↗
(baseURL string)

Source from the content-addressed store, hash-verified

37}
38
39func NewClient(baseURL string) *Client {
40 httpClient := &http.Client{
41 Timeout: timeout,
42 }
43
44 return &Client{
45 Client: httpClient,
46 BaseURL: baseURL,
47 }
48}
49
50func (client *Client) query(path string, params url.Values) ([]byte, error) {
51 u, err := url.Parse(client.BaseURL)

Callers 2

newSearchCmdFunction · 0.92
newShowCmdFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected