MCPcopy
hub / github.com/vulcand/vulcand / Get

Method Get

api/client.go:311–320  ·  view source on GitHub ↗
(u string, params url.Values)

Source from the content-addressed store, hash-verified

309}
310
311func (c *Client) Get(u string, params url.Values) ([]byte, error) {
312 baseUrl, err := url.Parse(u)
313 if err != nil {
314 return nil, err
315 }
316 baseUrl.RawQuery = params.Encode()
317 return c.RoundTrip(func() (*http.Response, error) {
318 return http.Get(baseUrl.String())
319 })
320}
321
322type RoundTripFn func() (*http.Response, error)
323

Callers 15

GetStatusMethod · 0.95
GetHostsMethod · 0.95
GetLogSeverityMethod · 0.95
GetHostMethod · 0.95
GetListenerMethod · 0.95
GetListenersMethod · 0.95
GetFrontendMethod · 0.95
GetFrontendsMethod · 0.95
TopFrontendsMethod · 0.95
GetBackendMethod · 0.95
GetBackendsMethod · 0.95
TopServersMethod · 0.95

Calls 2

RoundTripMethod · 0.95
StringMethod · 0.45

Tested by 4

SetUpTestMethod · 0.36
SetUpTestMethod · 0.36
TestStatusV1Method · 0.36
TestNotFoundHandlerMethod · 0.36