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

Function NewClient

internal/api/submit/client.go:22–31  ·  view source on GitHub ↗
(baseURL string)

Source from the content-addressed store, hash-verified

20}
21
22func NewClient(baseURL string) *Client {
23 httpClient := &http.Client{
24 Timeout: timeout,
25 }
26
27 return &Client{
28 Client: httpClient,
29 BaseURL: baseURL,
30 }
31}
32
33func (client *Client) SendRequest(request Request) error {
34 payload, err := json.Marshal(request)

Callers 1

submitRequestFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected