MCPcopy Index your code
hub / github.com/apache/devlake / Setup

Method Setup

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

Setup FIXME ...

(
	endpoint string,
	headers map[string]string,
	timeout time.Duration,

)

Source from the content-addressed store, hash-verified

187
188// Setup FIXME ...
189func (apiClient *ApiClient) Setup(
190 endpoint string,
191 headers map[string]string,
192 timeout time.Duration,
193
194) {
195 apiClient.client = &http.Client{Timeout: timeout}
196 apiClient.SetEndpoint(endpoint)
197 apiClient.SetHeaders(headers)
198 apiClient.data = map[string]interface{}{}
199}
200
201// SetEndpoint FIXME ...
202func (apiClient *ApiClient) SetEndpoint(endpoint string) {

Callers 4

NewApiClientFunction · 0.95
getFakeAPIClientFunction · 0.95

Implementers 2

ApiClientbackend/helpers/pluginhelper/api/api_c
refreshApiClientbackend/plugins/github/token/refresh_a

Calls 2

SetEndpointMethod · 0.95
SetHeadersMethod · 0.95

Tested by 3

getFakeAPIClientFunction · 0.76