MCPcopy
hub / github.com/apache/devlake / ApiClient

Struct ApiClient

backend/helpers/pluginhelper/api/api_client.go:58–70  ·  view source on GitHub ↗

ApiClient is designed for simple api requests

Source from the content-addressed store, hash-verified

56
57// ApiClient is designed for simple api requests
58type ApiClient struct {
59 client *http.Client
60 endpoint string
61 headers map[string]string
62 data map[string]interface{}
63 data_mutex sync.Mutex
64
65 authFunc plugin.ApiClientBeforeRequest
66 beforeRequest plugin.ApiClientBeforeRequest
67 afterResponse plugin.ApiClientAfterResponse
68 ctx gocontext.Context
69 logger log.Logger
70}
71
72// NewApiClientFromConnection creates ApiClient based on given connection.
73func NewApiClientFromConnection(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected