MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / Connect

Method Connect

pkg/aggregator/worker_test.go:37–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35}
36
37func (c *httpClient) Connect() error {
38 //nolint:noctx
39 res, err := http.Get(c.url + "/connect")
40 if err != nil {
41 return err
42 }
43 defer func() {
44 _ = res.Body.Close()
45 }()
46 if res.StatusCode != http.StatusOK {
47 return err
48 }
49 return nil
50}
51
52func (c *httpClient) Close() error { return nil }
53

Callers

nothing calls this directly

Calls 2

GetMethod · 0.65
CloseMethod · 0.65

Tested by

no test coverage detected