MCPcopy Create free account
hub / github.com/asternic/wuzapi / SetHTTPClient

Method SetHTTPClient

clients.go:51–55  ·  view source on GitHub ↗
(userID string, client *resty.Client)

Source from the content-addressed store, hash-verified

49}
50
51func (cm *ClientManager) SetHTTPClient(userID string, client *resty.Client) {
52 cm.Lock()
53 defer cm.Unlock()
54 cm.httpClients[userID] = client
55}
56
57func (cm *ClientManager) GetHTTPClient(userID string) *resty.Client {
58 cm.RLock()

Callers 1

startClientMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected