MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / GetWithRetry

Method GetWithRetry

pkg/api/http.go:65–67  ·  view source on GitHub ↗

GetWithRetry performs a GET request with retry logic.

(ctx context.Context, path string, result *map[string]interface{}, maxRetries int)

Source from the content-addressed store, hash-verified

63
64// GetWithRetry performs a GET request with retry logic.
65func (hc *HTTPClient) GetWithRetry(ctx context.Context, path string, result *map[string]interface{}, maxRetries int) error {
66 return hc.doRequestWithRetry(ctx, "GET", path, nil, result, maxRetries)
67}
68
69// doRequest performs an HTTP request with proper authentication.
70func (hc *HTTPClient) doRequest(ctx context.Context, method, path string, data interface{}, result *map[string]interface{}) error {

Calls 1

doRequestWithRetryMethod · 0.95